[CMake] 3rd party modules

Brad King brad.king at kitware.com
Fri Sep 29 16:44:48 EDT 2006


Brad King wrote:
> Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
>> 	That didn't do it. This is what I am doing:
>> ADD_LIBRARY(Foo foo.cpp)
>> SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") 
>> GET_TARGET_PROPERTY(LIBNAME Foo LOCATION)
>> 	I am still getting libfoo.a for the ${LIBNAME} but
>> libfooDebug.a is generated.
>> 	Am I missing something?
> 
> No, this is a bug.  See here:
> 
> http://www.cmake.org/Bug/bug.php?op=show&bugid=3250&pos=1
> 
> The LOCATION property presents a challenge for per-configuration names
> as explained in that bug report.  It basically isn't implemented for
> that case right now.

I've just added <CONFIG>_LOCATION to GET_TARGET_PROPERTY in CVS CMake.
You should be able to do

GET_TARGET_PROPERTY(LIBNAME Foo DEBUG_LOCATION)

We'll include this in CMake release 2.4.4.

-Brad


More information about the CMake mailing list