I am trying to include debug/release dependent compiler flags, such as:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -Wall -DUSE_BOOST")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O3")
I create my build folder with a command such as:
cmake -DCMAKE_BUILD_TYPE=Release -D UseFortran=True -D CMAKE_CXX_COMPILER=g++-4.6 ~/repos/cliques/cliques
However it seems with CMAKE version 2.8.7, CMAKE_BUILD_TYPE is being ignored. It seems to work perfectly with version 2.8.4 (on a different machine), so has this method been deprecated or is there some other problem here?
Zenna