[CMake] Bug in GET_TARGET_PROPERTY LOCATION?

Brad King brad.king at kitware.com
Tue Jun 21 13:44:29 EDT 2005


Filipe Sousa wrote:
> Hi!
> 
> Shouldn't GET_TARGET_PROPERTY return loc.so instead of libloc.so?
> 
> PROJECT(loc)
> ADD_LIBRARY(loc SHARED loc.cc)
> SET_TARGET_PROPERTIES(loc PROPERTIES PREFIX "")
> GET_TARGET_PROPERTY(libfile loc LOCATION)
> MESSAGE(STATUS "libfile=${libfile}")
> 
> fsousa at neptuno ~/tmp/loc/build $ cmake ..
> -- Check for working C compiler: gcc
> -- Check for working C compiler: gcc -- works
> -- Check size of void *
> -- Check size of void * - done
> -- Check for working CXX compiler: c++
> -- Check for working CXX compiler: c++ -- works
> -- libfile=/home/fsousa/tmp/loc/build/libloc.so
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/fsousa/tmp/loc/build

This is definately a bug.  Please report it here:

http://www.cmake.org/Bug

Thanks,
-Brad


More information about the CMake mailing list