[CMake] CMAKE_BUILD_TYPE and flags (special case)

Felipe Lema felipe.lema at alges.cl
Thu Nov 24 15:00:09 EST 2011


If anyone's interested: got it working using MinSizeRel

For now, at least

2011/11/24 Felipe Lema <felipe.lema at alges.cl>

> 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
>
>
>


-- 

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/3d8576ec/attachment.htm>


More information about the CMake mailing list