[CMake] libfoo.dll foo.exe liblib collision problem
Brad King
brad.king at kitware.com
Mon Dec 12 09:40:44 EST 2005
Brandon J. Van Every wrote:
> In the Windows world, it is considered reasonable to name related pieces
> of software thus:
>
> libfoo.dll - a dynamic link library
> foo.exe - an app that uses the libfoo.dll
>
> The problem is, when trying to make this cross-platform, Unixn like to
> tack lib* onto the front of anything that's going to be a lib. So if
> you do
>
> ADD_LIBRARY(libfoo ${LIBFOO_SOURCES})
This should work:
SET_TARGET_PROPERTIES(libfoo PROPERTIES PREFIX "")
-Brad
More information about the CMake
mailing list