From 0ffc852355b70e3c33a4cc162b5c252c36e9da35 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 24 Jan 2013 14:16:13 +0400 Subject: [PATCH] Making the OS specific part more readable (indentation). modified: storage/connect/CMakeLists.txt --- storage/connect/CMakeLists.txt | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/storage/connect/CMakeLists.txt b/storage/connect/CMakeLists.txt index 68fde9f3f1e..7f419528808 100644 --- a/storage/connect/CMakeLists.txt +++ b/storage/connect/CMakeLists.txt @@ -38,25 +38,25 @@ add_definitions( -DHUGE_SUPPORT -DZIP_SUPPORT ) # OS specific C flags, definitions and source files. # IF(UNIX) -if( WITH_WARNINGS ) -add_definitions(-Wall -Wfatal-errors -Wextra) -message(STATUS "CONNECT: GCC: All warnings enabled") -else() -add_definitions(--no-warnings) -message(STATUS "CONNECT: GCC: All warnings disabled") -endif() + if(WITH_WARNINGS) + add_definitions(-Wall -Wfatal-errors -Wextra) + message(STATUS "CONNECT: GCC: All warnings enabled") + else() + add_definitions(--no-warnings) + message(STATUS "CONNECT: GCC: All warnings disabled") + endif(WITH_WARNINGS) -add_definitions( -DUNIX -DLINUX -DUBUNTU ) + add_definitions( -DUNIX -DLINUX -DUBUNTU ) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ") -get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES) -SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.c) -SET(IPHLPAPI_LIBRARY "") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -fexceptions -fPIC ") + get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES) + SET(CONNECT_SOURCES ${CONNECT_SOURCES} inihandl.c) + SET(IPHLPAPI_LIBRARY "") ELSE(!UNIX) -# Windows (manually add exception handling to the CONNECT project) -SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabwmi.cpp tabmac.cpp macutil.cpp) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") -SET(IPHLPAPI_LIBRARY iphlpapi.lib) + 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(IPHLPAPI_LIBRARY iphlpapi.lib) ENDIF(UNIX)