[CMake] Linking against debug/release libraries on Windowsdepending on build type
Phil Pellouchoud
Phil at slacker.com
Wed Jun 18 13:11:12 EDT 2008
I think what you normally do is something like this:
TARGET_LINK_LIBRARIES( testapp
debug mylibraryd.lib
optimized mylibrary.lib )
not sure what you mean by "how I'd install the DLL versions of those
libraries"
what do you mean by "install" ? Do you mean, copy for development or
like an actual windows installation application.
-phil
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Mike Arthur
Sent: Wednesday, June 18, 2008 9:56 AM
To: cmake at cmake.org
Subject: [CMake] Linking against debug/release libraries on
Windowsdepending on build type
Is there some magical way (or can anyone suggest how to implement) CMake
can
know that, for a debug build, it wants to link against
${FILENAMEWITHOUTEXTENSION}d.lib and for a release build against
${FILENAMEWITHOUTEXTENSION}.lib?
Double points if anyone also can suggest how I'd install the DLL
versions of
those libraries also (the same filename but with a .dll extension rather
than .lib)
Any other UNIX coders having to hack their CMakeLists to cater for
Visual
Studio's idiocies please raise your hands...
Thanks in advance!
--
Cheers,
Mike Arthur
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list