View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015654 | CMake | CMake | public | 2015-07-15 13:35 | 2016-01-04 11:51 | ||||
Reporter | James Bigler | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | suspended | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015654: Need generator expression CONFIG that works for both multi-config and single config generators | ||||||||
Description | The 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |