[CMake] Linking 3rd party libraries
Tyler Roscoe
tyler at cryptio.net
Thu Jun 25 02:46:14 EDT 2009
On Wed, Jun 24, 2009 at 07:19:18PM -0500, Nathan Paul wrote:
> Doesn't target_link_libraries only allow you to change the library used for
> the configuration, not set the library path.
Yes.
> Sure I could prepend the correct path to the library, but it still
> doesn't change the library path.
I'm not aware of another way to do this that will work generators that
don't use CMAKE_BUILD_TYPE (like Visual Studio). If you only need to
support makefiles, you could do:
link_directories (/some/path/including/${CMAKE_BUILD_TYPE})
tyler
More information about the CMake
mailing list