[CMake] Cannot link to: SET_TARGET_PROPERTIES(foo PROPERTIES PREFIX "")

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Apr 26 06:03:57 EDT 2007


I have a test case for using cmake to link to a non 'lib' prefix library:

 http://gdcm.svn.sourceforge.net/viewvc/gdcm/Sandbox/CMakeBug/2/

Replicated with cmake 2.4.5 and CMake CVS

-----
ADD_LIBRARY(foo SHARED foo.c)
SET_TARGET_PROPERTIES(foo PROPERTIES PREFIX "")

ADD_EXECUTABLE(testfoo testfoo.c)
TARGET_LINK_LIBRARIES(testfoo foo)
-----

How to retrieve:

 svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/CMakeBug/2

should it be entered in the bug tracker ?
-- 
Mathieu


More information about the CMake mailing list