I used the debug and optimized just as you said.  Thank you!

On 12/29/2011 2:14 PM, Robert Dailey wrote:
It won't be necessary with link_directories because you can specify absolute paths to your LIB files in target_link_libraries(). You can also specify 'debug' or 'optimized' prior to the lib. for example:

target_link_libraries( myproject
   debug "C:/project/libs/debug/zlib.lib"
   optimized "C:/project/libs/release/zlib.lib"
)

---------
Robert Dailey

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to