[CMake] Problem with shared libraries

Brad King brad.king at kitware.com
Wed Sep 14 13:53:17 EDT 2005


Marco Spatz wrote:
> But if I change the line
> 
> TARGET_LINK_LIBRARIES(idoCheckLicense dl pthread IDOBase)
> 
> to
> 
> TARGET_LINK_LIBRARIES(idoCheckLicense dl pthread libIDOBase.so)
> 
> everthing works fine. But I don't want to step through the whole project 
> and change every single cmake file if it isn't necessary.
> 
> Is this a bug in cmake? Or is there some error in my code?

It looks like a bug in CMake...you should not have to know the shared 
library prefix (lib) and suffix (.so) to link to the library.  Please 
try to strip this down to a minimal source tree duplicating the problem 
and submit a report to the bug tracker:

http://www.cmake.org/Bug

Thanks,
-Brad


More information about the CMake mailing list