[CMake] Visual Studio Generator: different Link paths for Debug and Release

aaron.meadows at thomsonreuters.com aaron.meadows at thomsonreuters.com
Wed Aug 25 10:31:42 EDT 2010


Hi all.

 

I need to use different link paths for Debug and Release builds of my
software.  I'm building with the Visual Studio Generator (2005, 2008,
etc).  I had put this in my CMakeLists.txt, but as it turns out, this
doesn't do what I need (likely because of the single pass to generate
the project files):

 

if(DEBUG)

 link_directories("$ENV{RDFD3RDPARTYDIR}/lib/Debug")

else()

 link_directories("$ENV{RDFD3RDPARTYDIR}/lib/Release")

endif()

 

So, my question: is there a way to have different link directory paths
for each configuration in visual studio without generating multiple
build directories for VS?

 

Thanks for the help!

 

 

Aaron Meadows
Software Engineer

Thomson Reuters

Phone: 314.468.3530
Mobile: 636.541.6139
aaron.meadows at thomsonreuters.com
thomsonreuters.com

 



This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100825/69ebf86c/attachment.htm>


More information about the CMake mailing list