View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012124CMakeCMakepublic2011-04-26 16:082014-06-02 08:37
ReporterGlenn Coombs 
Assigned ToStephen Kelly 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformMicrosoftOSWindowsOS Version7
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.11 
Summary0012124: Need per configuration version of target_link_libraries() or fix IMPORTED_LOCATION to allow empty string
DescriptionSee http://www.cmake.org/pipermail/cmake/2011-April/044059.html [^] for full details.

I want to use target_link_libraries() to add a library dependency but only for my custom configuration called DebugPthreads. As target_link_libraries() doesn't support that functionality I tried specifying the dependency as an imported library so that I could set its location using the IMPORTED_LOCATION_DEBUGPTHREADS property. That works for the DebugPthreads configuration but there is no way to set an empty string or otherwise disable the imported library for the other configurations.
Steps To Reproducen/a
Additional InformationI'm using cmake 2.8.2 and Visual Studio 2008.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0027379)
David Cole (manager)
2011-09-06 14:49

Not enough time left to address this issue before the 2.8.6 release. Deferred until a future release.
(0030303)
David Cole (manager)
2012-08-11 11:38

Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0034325)
Stephen Kelly (developer)
2013-11-02 10:44

Use

 target_link_libraries(foo $<$<CONFIG:DebugPthreads>:depend>)
(0035990)
Robert Maynard (manager)
2014-06-02 08:37

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-04-26 16:08 Glenn Coombs New Issue
2011-08-01 11:59 David Cole Target Version => CMake 2.8.6
2011-09-06 14:49 David Cole Note Added: 0027379
2011-09-06 14:49 David Cole Target Version CMake 2.8.6 =>
2012-08-11 11:38 David Cole Status new => backlog
2012-08-11 11:38 David Cole Note Added: 0030303
2013-11-02 10:44 Stephen Kelly Note Added: 0034325
2013-11-02 10:44 Stephen Kelly Status backlog => resolved
2013-11-02 10:44 Stephen Kelly Fixed in Version => CMake 2.8.11
2013-11-02 10:44 Stephen Kelly Resolution open => fixed
2013-11-02 10:44 Stephen Kelly Assigned To => Stephen Kelly
2014-06-02 08:37 Robert Maynard Note Added: 0035990
2014-06-02 08:37 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team