[CMake] Re : GET_TARGET_PROPERTY issue

Antoine PREVOT tonio_lesec at yahoo.fr
Fri Aug 8 05:40:16 EDT 2008


oops, sent off list :)

____________


> but the GET_TARGET_PROPERTY can't give me the PREFIX of
> the library file. Is there a way for doing that properly ?

Hi Alex,

SET_TARGET_PROPERTIES is what you are looking for. Just after your ADD_LIBRARY statement, try :
SET_TARGET_PROPERTIES(hello PROPERTIES PREFIX "")

That should do the job. At least, it works for me (just tried it) : osx tiger, cmake 2.4.

Tonio




      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr


More information about the CMake mailing list