[CMake] Bug in GET_TARGET_PROPERTY? (was CMAKE_CONFIG_POSTFIX vs GET_TARGET_PROPERTY(FILE foo LOCATION) )

Andreas Pakulat apaku at gmx.de
Fri Dec 21 04:26:19 EST 2007


On 21.12.07 09:05:28, Josef Karthauser wrote:
> It wasn't just the office party talking, I've rechecked today and it
> definitely isn't working as I'd expect:
> 
>  
> 
> SET(CMAKE_DEBUG_POSTFIX "_d")
> 
> Project(Hello)
> 
> add_library (Hello hello.cxx hello.h)
> 
> get_target_property(FILE Hello LOCATION)
> 
> message("Lib is called: ${FILE}")
> 
>  
> 
> Run cmake on this and I get the output:

You forgot the cmake output, but I see the same thing here. CMake 2.4.7.

Andreas

-- 
You will have a long and boring life.


More information about the CMake mailing list