[CMake] CMAKE_BUILD_TYPE and flags (special case)
felipe.lema at alges.cl
Thu Nov 24 10:46:38 EST 2011
I'm trying to build a custom (C++) library using cmake 2.8.4, mingw32 and
intel compiler (icl) on a win7-32 machine, but CMAKE_BUILD_TYPE is not
being respected: it's using the debug flags when building with mingw. I've
tried setting this variable to "Release" both with the cache editor and
editing the CMakeLists.txt file, but flags remain as a debug build.
I have only changed the CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS_DEBUG,
but not CMAKE_CXX_FLAGS. I double checked this with the cache editor.
Any suggestions? Is it something to do with mingw or with icl? Do mind that
everything works as a charm when building in a linux machine
Felipe Lema Salas
Ingeniero Civil en Computación
Departamento de Ingeniería en Minas
Universidad de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CMake