[CMake] Always build release version of a librart

Fedor Gusev gusevfe at gmail.com
Mon Jan 21 03:01:58 EST 2013


Hello.
I have a project with a number of libraries. For a certain library i want
to always build release version, whatever CMAKE_BUILD_TYPE is set to.

Right now I am using set(CMAKE_BUILD_TYPE Release) in CMakeLists.txt for
this library. But that does not  work with multiconfiguration generators
like Visual Studio while fine for nmake generator.

What can I do here? Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130121/d3292fab/attachment.htm>


More information about the CMake mailing list