[Cmake] Debug or Release

Patrick Rochon prochon at stelvio.com
Tue May 13 11:01:19 EDT 2003


Hi,

I am building a .DLL.

I am using cmake to generate VisualStudio7 project files.

Is it possible to link with a .lib in Debug and a different .lib in Release
?

I think that is possible using something like this :

IF(DEBUG)
	LINK_LIBRARIES(rxmd.lib)
ELSE(DEBUG)
	LINK_LIBRARIES(rxmr.lib)
ENDIF(DEBUG)

But, I can't find the exact "IF" command.

Thank you!

Patrick Rochon
Code Administrator
Stelvio inc.





More information about the CMake mailing list