[cmake-developers] [CMake 0013861]: SET(LIBRARIES debug ${LIBRARY_DBG} optimized ${LIBRARY} ) doesn't work for Visual Studio 2010
Mantis Bug Tracker
mantis at public.kitware.com
Sun Jan 20 09:29:47 EST 2013
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
======================================================================
More information about the cmake-developers
mailing list