| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0011274 | CMake | CMake | public | 2010-09-29 11:01 | 2010-11-09 22:57 | ||||
| Reporter | Elizabeta | ||||||||
| Assigned To | Bill Hoffman | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake-2-8 | ||||||||
| Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | ||||||
| Summary | 0011274: add_custom_command does not work with VS2010 generator | ||||||||
| Description | when output of the add_custom_command is PROJECT_BINARY_DIR/Some_Subdir it does not work as it should i.e the command is always run. Example : ADD_CUSTOM_COMMAND( OUTPUT "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt" COMMAND ${CMAKE_COMMAND} -E copy "${PROJECT_SOURCE_DIR}/myfile.txt" "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt" DEPENDS "${PROJECT_SOURCE_DIR}/myfile.txt" ) If I specify for OUTPUT "${PROJECT_BINARY_DIR}/generated.txt" instead of OUTPUT "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt" it works. | ||||||||
| Additional Information | I tested with cmake 2.8.2 . I used out of source build. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0022382) Bill Hoffman (manager) 2010-09-29 11:12 edited on: 2010-09-29 11:13 |
Can you use zip or tar? I don't have a rar reader. Also, not sure why the file is SO big. Should only be a CMakeLists.txt file with a minimal example. No object code please. |
|
(0022384) Elizabeta (reporter) 2010-09-29 15:08 |
I added Test2.zip with the cmakelists.txt file and vs2010 generated project file. |
|
(0022386) Bill Hoffman (manager) 2010-09-29 17:05 |
OK, I reproduced it and have a fix that is in CMake next. As a work around for this issue if you use the MAIN_DEPENDENCY option like this: MAIN_DEPENDENCY "${PROJECT_SOURCE_DIR}/myfile.txt" It will get around the problem. |
|
(0022418) David Cole (manager) 2010-10-06 13:38 |
In CMake 2.8.3-rc2 |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-09-29 11:01 | Elizabeta | New Issue | |
| 2010-09-29 11:01 | Elizabeta | File Added: Test.rar | |
| 2010-09-29 11:12 | Bill Hoffman | Note Added: 0022382 | |
| 2010-09-29 11:12 | Bill Hoffman | Status | new => assigned |
| 2010-09-29 11:12 | Bill Hoffman | Assigned To | => Bill Hoffman |
| 2010-09-29 11:13 | Bill Hoffman | Note Added: 0022383 | |
| 2010-09-29 11:13 | Bill Hoffman | Note Edited: 0022382 | |
| 2010-09-29 11:13 | Bill Hoffman | Note Deleted: 0022383 | |
| 2010-09-29 15:07 | Elizabeta | File Added: Test2.zip | |
| 2010-09-29 15:08 | Elizabeta | Note Added: 0022384 | |
| 2010-09-29 17:05 | Bill Hoffman | Note Added: 0022386 | |
| 2010-10-06 13:38 | David Cole | Note Added: 0022418 | |
| 2010-10-06 13:38 | David Cole | Status | assigned => resolved |
| 2010-10-06 13:38 | David Cole | Fixed in Version | => CMake 2.8.3 |
| 2010-10-06 13:38 | David Cole | Resolution | open => fixed |
| 2010-10-06 13:38 | David Cole | Target Version | => CMake 2.8.3 |
| 2010-10-06 13:38 | David Cole | Additional Information Updated | |
| 2010-11-09 22:57 | Philip Lowman | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |