[CMake] 3rd party modules

Brad King brad.king at kitware.com
Fri Sep 29 11:46:04 EDT 2006


Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> 	Thanks Brad. 
> 	So for those two lines: 
> SET(CMAKE_DEBUG_POSTFIX "Debug")
> GET_TARGET_PROPERTY(LIBNAME Foo LOCATION)
> 	Should I get?
> <prefix>/lib/libfooDebug.a
> 	I am getting (no 'Debug'):
> <prefix>/lib/libfoo.a
> 	but libfooDebug.a is generated.

The debug postfix has to be set when the library is created.  Better yet
use SET_TARGET_PROPERTIES just after the ADD_LIBRARY call to set the
DEBUG_POSTFIX target property.

-Brad



More information about the CMake mailing list