mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Making the OS specific part more readable (indentation).
modified: storage/connect/CMakeLists.txt
This commit is contained in:
parent
9ff78c618c
commit
0ffc852355
1 changed files with 16 additions and 16 deletions
|
@ -38,25 +38,25 @@ add_definitions( -DHUGE_SUPPORT -DZIP_SUPPORT )
|
||||||
# OS specific C flags, definitions and source files.
|
# OS specific C flags, definitions and source files.
|
||||||
#
|
#
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
if( WITH_WARNINGS )
|
if(WITH_WARNINGS)
|
||||||
add_definitions(-Wall -Wfatal-errors -Wextra)
|
add_definitions(-Wall -Wfatal-errors -Wextra)
|
||||||
message(STATUS "CONNECT: GCC: All warnings enabled")
|
message(STATUS "CONNECT: GCC: All warnings enabled")
|
||||||
else()
|
else()
|
||||||
add_definitions(--no-warnings)
|
add_definitions(--no-warnings)
|
||||||
message(STATUS "CONNECT: GCC: All warnings disabled")
|
message(STATUS "CONNECT: GCC: All warnings disabled")
|
||||||
endif()
|
endif(WITH_WARNINGS)
|
||||||
|
|
||||||
add_definitions( -DUNIX -DLINUX -DUBUNTU )
|
add_definitions( -DUNIX -DLINUX -DUBUNTU )
|
||||||
|
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ")
|
||||||
get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
|
get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
|
||||||
SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.c)
|
SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.c)
|
||||||
SET(IPHLPAPI_LIBRARY "")
|
SET(IPHLPAPI_LIBRARY "")
|
||||||
ELSE(!UNIX)
|
ELSE(!UNIX)
|
||||||
# Windows (manually add exception handling to the CONNECT project)
|
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabwmi.cpp tabmac.cpp macutil.cpp)
|
||||||
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabwmi.cpp tabmac.cpp macutil.cpp)
|
# Add exception handling to the CONNECT project)
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
||||||
SET(IPHLPAPI_LIBRARY iphlpapi.lib)
|
SET(IPHLPAPI_LIBRARY iphlpapi.lib)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue