Changeset 2223
- Timestamp:
- Nov 19, 2008, 3:35:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/CMakeLists.txt
r2204 r2223 2 2 3 3 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) 4 5 # TODO: Test CMake Modules without policy6 #IF (COMMAND cmake_policy)7 # cmake_policy(SET CMP0003 NEW)8 #ENDIF (COMMAND cmake_policy)9 4 10 5 # This sets where to look for modules (e.g. "Find*.cmake" files) … … 32 27 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH) 33 28 34 # TODO: use CMake's options for build types 35 # Global compiler/linker flags. 36 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb") 37 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb") 38 #SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O3") 39 #SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O3") 29 # Compiler/Linker flags. 30 IF(NOT CMAKE_BUILD_TYPE) 31 SET(CMAKE_BUILD_TYPE "Debug") 32 ENDIF(NOT CMAKE_BUILD_TYPE) 33 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter") 34 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter") 35 SET(CMAKE_C_FLAGS_DEBUG "-g -ggdb") 36 SET(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb") 37 SET(CMAKE_C_FLAGS_RELEASE "-O3") 38 SET(CMAKE_CXX_FLAGS_RELEASE "-O3") 39 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb") 40 SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb") 41 SET(CMAKE_C_FLAGS_MINSIZEREL "-Os") 42 SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os") 40 43 41 44 SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}")
Note: See TracChangeset
for help on using the changeset viewer.