MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0009822 | CMake | CMake | public | 2009-11-02 10:52 | 2014-06-02 08:37 |
Reporter | Mathieu Malaterre | ||||
Assigned To | Stephen Kelly | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | CMake 3.0 | |||
Summary | 0009822: Please expose: cmGlobalGenerator::GetExportSet at cmake level | ||||
Description | It would be very nice if cmGlobalGenerator::GetExportSet was expose at cmake level. This would allow easily exporting a build tree, just as easily as exporting an install tree. typicaly project: add_executable(generator generator.c) add_library(mylib mylib.c) Compare code for install tree: ... install(TARGETS generator DESTINATION lib/myproj/generators EXPORT myproj-targets) install(TARGETS mylib DESTINATION lib/myproj EXPORT myproj-targets) # in a single line to export all target attached to myproj-targets install(EXPORT myproj-targets DESTINATION lib/myproj) ... # myproj-targets.cmake, properly contains all targets attached to myproj-targets while for a build-tree: # need to initialize an empty file: file(WRITE ${COSMO_BINARY_DIR}/CoSMoExports.cmake "") # manually book-keep target that have been attached to myproj-targets if(build_generator) export(TARGETS generator APPEND FILE ${bla}/CoSMoExports.cmake) endif() if(build_mylib) export(TARGETS mylib APPEND FILE ${bla}/CoSMoExports.cmake) endif() # There is no way we are not missing a target listed in myproj-targets Thanks, | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-11-02 10:52 | Mathieu Malaterre | New Issue | |||
2009-11-02 11:12 | Bill Hoffman | Status | new => assigned | ||
2009-11-02 11:12 | Bill Hoffman | Assigned To | => Brad King | ||
2009-11-02 12:10 | Brad King | Note Added: 0018315 | |||
2009-11-02 12:17 | Mathieu Malaterre | Note Added: 0018316 | |||
2009-11-02 12:34 | Mathieu Malaterre | Note Added: 0018317 | |||
2012-08-13 10:37 | Brad King | Status | assigned => backlog | ||
2012-08-13 10:37 | Brad King | Note Added: 0030531 | |||
2013-12-23 11:12 | Stephen Kelly | Assigned To | Brad King => Stephen Kelly | ||
2013-12-23 11:12 | Stephen Kelly | Status | backlog => assigned | ||
2014-01-02 15:09 | Stephen Kelly | Note Added: 0034898 | |||
2014-01-02 15:09 | Stephen Kelly | Status | assigned => resolved | ||
2014-01-02 15:09 | Stephen Kelly | Fixed in Version | => CMake 3.0 | ||
2014-01-02 15:09 | Stephen Kelly | Resolution | open => fixed | ||
2014-06-02 08:37 | Robert Maynard | Note Added: 0036069 | |||
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|