[CMake] Debug/Release configurations for codeblocks ?

Michael Jackson mike.jackson at bluequartz.net
Tue Jul 27 09:02:36 EDT 2010


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.jackson at bluequartz.net
BlueQuartz Software               Dayton, Ohio




More information about the CMake mailing list