View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013861CMakeCMakepublic2013-01-20 09:292016-06-10 14:31
Reportercriskross 
Assigned ToKitware Robot 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows 7OS Versionx64
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0013861: SET(LIBRARIES debug ${LIBRARY_DBG} optimized ${LIBRARY} ) doesn't work for Visual Studio 2010
DescriptionHello,

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 ReproduceFind(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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032128)
Brad King (manager)
2013-01-23 10:38

AFAIK this is known to work and well-tested. Please provide a minimal complete example CMake project that reproduces it.
(0042204)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-01-20 09:29 criskross New Issue
2013-01-23 10:38 Brad King Note Added: 0032128
2016-06-10 14:28 Kitware Robot Note Added: 0042204
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team