On Jul 27, 2010, at 5:32 AM, Verweij, Arjen wrote:

Hi,

Isn't build_type = Release sufficient?

Not for the way I'm mistreating cmake ;)

set (CMAKE_BUILD_TYPE RELEASE FORCE)

SET (CMAKE_EXE_LINKER_FLAGS_INIT "" FORCE)

set (CMAKE_C_FLAGS_RELEASE_INIT "")
set (CMAKE_CXX_FLAGS_RELEASE_INIT "")
set (CMAKE_Fortran_FLAGS_RELEASE_INIT "")

Also I have to add -nodefaultlib:msvcrt.lib (I want libcmt) and if I add a list of libs to exclude (-nodefaultlib:xxx.lib - nodefaultlib:yyy.lib -nodefaultlib:zzz) the last one can't have the .lib extension because I get it twice. (zzz.lib.lib if you don't omit the extension yourself. Perhaps a bug, but I don't have time to investigate right-now.

Arjen

Could you help me understand the motivations behind this type of code? Is it the conflicts between the debug and release C/C++ runtime libraries on Visual Studio?
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jack...@bluequartz.net
BlueQuartz Software               Dayton, Ohio


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to