View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015654CMakeCMakepublic2015-07-15 13:352016-01-04 11:51
ReporterJames Bigler 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015654: Need generator expression CONFIG that works for both multi-config and single config generators
DescriptionThe value of $<CONFIG> works just fine for generators like Visual Studio (e.g. Debug, RelWithDebInfo), but for generators like Makefiles it maps to CMAKE_BUILD_TYPE, which is less useful for doing stuff like this:

file(GENERATE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<CONFIG>/myfile)

This will do the right thing for VS, but not for Makefile. It would be helpful to have such a value that could make this work.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039148)
Brad King (manager)
2015-07-15 13:41

If you're trying to generate a script that goes next to a target's executable file then you should be able to do

 file(GENERATE OUTPUT $<TARGET_FILE_DIR:myexe>/myfile ...)
(0039149)
Brad King (manager)
2015-07-15 13:42

Design discussion belongs on the dev list with a larger audience, not in the issue tracker.
(0039150)
James Bigler (developer)
2015-07-15 13:46

This seems to rely on the presence of at least one executable. I'm generating a library, whose dll ends up in the RUNTIME path on Windows and in the LIBRARY path on Unix.
(0040094)
Robert Maynard (manager)
2016-01-04 11:51

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

 Issue History
Date Modified Username Field Change
2015-07-15 13:35 James Bigler New Issue
2015-07-15 13:41 Brad King Note Added: 0039148
2015-07-15 13:42 Brad King Note Added: 0039149
2015-07-15 13:42 Brad King Status new => resolved
2015-07-15 13:42 Brad King Resolution open => suspended
2015-07-15 13:46 James Bigler Note Added: 0039150
2016-01-04 11:51 Robert Maynard Note Added: 0040094
2016-01-04 11:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team