comparison CMakeLists.txt @ 171:04c1e0188ac3

Fixed RELEASE_BUILD define.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 15:15:16 +0100
parents 37198bd07182
children 2fd69803d219
comparison
equal deleted inserted replaced
170:3343ddf43f42 171:04c1e0188ac3
26 26
27 if(DO_RELEASE_BUILD) 27 if(DO_RELEASE_BUILD)
28 if (NOT CMAKE_BUILD_TYPE) 28 if (NOT CMAKE_BUILD_TYPE)
29 set (CMAKE_BUILD_TYPE RELEASE) 29 set (CMAKE_BUILD_TYPE RELEASE)
30 endif (NOT CMAKE_BUILD_TYPE) 30 endif (NOT CMAKE_BUILD_TYPE)
31 add_definitions (RELEASE_BUILD) 31 add_definitions (-DRELEASE_BUILD)
32 else() 32 else()
33 # Default to debug build 33 # Default to debug build
34 if (NOT CMAKE_BUILD_TYPE) 34 if (NOT CMAKE_BUILD_TYPE)
35 set (CMAKE_BUILD_TYPE Debug) 35 set (CMAKE_BUILD_TYPE Debug)
36 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") 36 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

http://wald.intevation.org/projects/trustbridge/