I am trying to enable debug / release dependent compiler flags, for example:
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 a folder for the assembly using the command, for example:
cmake -DCMAKE_BUILD_TYPE=Release -D UseFortran=True -D CMAKE_CXX_COMPILER=g++-4.6 ~/repos/cliques/cliques
However, CMAKE version 2.8.7 seems to be ignored. It seems to work fine with version 2.8.4 (on another machine), is this method deprecated or is there some other problem?
Zenna
zenna
source share