[CMake] CMAKE_BUILD_TYPE and flags (special case)

Felipe Lema felipe.lema at alges.cl
Thu Nov 24 10:46:38 EST 2011


Hi everyone

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
Laboratorio ALGES
Departamento de Ingeniería en Minas
Universidad de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111124/8f7e43d8/attachment.htm>


More information about the CMake mailing list