MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010437 | CMake | CMake | public | 2010-03-18 07:41 | 2011-05-02 14:46 |
| Reporter | Lysius | ||||
| Assigned To | David Cole | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | CMake 2.8.4 | |||
| Summary | 0010437: support "install(TARGETS ... OPTIONAL)" with "add_executable(... EXCLUDE_FROM_ALL ...)" | ||||
| Description | Using the combination add_executable(test EXCLUDE_FROM_ALL test.cpp) install(TARGETS test DESTINATION test OPTIONAL) results in the warning message WARNING: Target "test" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case. It does though what I expect: when I run "make install" without "make test" first, nothing is installed, when I do run "make test" first, the executable is installed. So I think the warning should be silenced when the install command has OPTIONAL set. I tested with 2.6.4 and 2.8.1, both show the same behavior. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/2981/testcase.tar.gz | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-03-18 07:41 | Lysius | New Issue | |||
| 2010-03-18 07:41 | Lysius | File Added: testcase.tar.gz | |||
| 2011-01-17 15:00 | David Cole | Assigned To | => David Cole | ||
| 2011-01-17 15:00 | David Cole | Status | new => assigned | ||
| 2011-01-17 15:03 | David Cole | Note Added: 0024798 | |||
| 2011-01-17 15:03 | David Cole | Status | assigned => resolved | ||
| 2011-01-17 15:03 | David Cole | Fixed in Version | => CMake 2.8.4 | ||
| 2011-01-17 15:03 | David Cole | Resolution | open => won't fix | ||
| 2011-05-02 14:46 | David Cole | Note Added: 0026348 | |||
| 2011-05-02 14:46 | David Cole | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||