The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13861
======================================================================
Reported By: criskross
Assigned To:
======================================================================
Project: CMake
Issue ID: 13861
Category: CMake
Reproducibility: always
Severity: minor
Priority: high
Status: new
======================================================================
Date Submitted: 2013-01-20 09:29 EST
Last Modified: 2013-01-20 09:29 EST
======================================================================
Summary: SET(LIBRARIES debug ${LIBRARY_DBG} optimized
${LIBRARY} ) doesn't work for Visual Studio 2010
Description:
Hello,
When I try to link libraries for debug and release different for visual studio
2010 the in debug/release project properties both library types are linked
against each one. So if I look at properties of debug there are also the release
libraries are linked. For release properties it's the same. Release are linked
againse debug and release of a library.
TARGET_LINK_LIBRARIES(projectname ${LIBRARIES } )
This doesn't work.
Steps to Reproduce:
Find(somepackage)
in Findsomepackage.cmake look for both debug and release libraries and define
own variables for both.
then:
SET(LIBRARIES debug ${LIBRARY_DBG} optimized ${LIBRARY} )
TARGET_LINK_LIBRARIES(projectname ${LIBRARIES } )
All of this for Visual Studio
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-01-20 09:29 criskross New Issue
======================================================================
--
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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers