MantisBT - CMake | ||||||||||||||||||||
View Issue Details | ||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||
0009963 | CMake | CMake | public | 2009-11-24 15:30 | 2016-06-06 13:37 | |||||||||||||||
Reporter | Shane Dixon | |||||||||||||||||||
Assigned To | David Cole | |||||||||||||||||||
Priority | high | 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 | 0009963: Passing command-line arguments to ExternalProject truncates variables | |||||||||||||||||||
Description | When passing CMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR} to an external project, the path should be C:\temp\deploy2, but the path instead shows up as just "C:". I fix it by adding a bogus variable TEST=${PROJECT_BINARY_DIR} which fixes the CAMKE_INSTAALL_PREFIX definition, but then TEST shows up as the wrong thing. I have this in two separate external projects that I build. | |||||||||||||||||||
Steps To Reproduce | ||||||||||||||||||||
Additional Information | ExternalProject_Add( ExtFMEmul URL "${CMAKE_CURRENT_SOURCE_DIR}/fm" CMAKE_GENERATOR "NMake Makefiles" CMAKE_ARGS cmake_install_prefix -DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR} -DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} -DMYPROJ_FM_H_PATH=${PROJECT_SOURCE_DIR}/include -DEXTRA_INCLUDES=${PROJECT_BINARY_DIR}/include BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/ExtFM_cl INSTALL_DIR ${PROJECT_BINARY_DIR} ) In the external project, the CMAKE_INSTALL_PREFIX yields this: -- CMAKE_INSTALL_PREFIX...............C: Now if I change the ExternalProject_Add to this: ExternalProject_Add( ExtFMEmul URL "${CMAKE_CURRENT_SOURCE_DIR}/fm" CMAKE_GENERATOR "NMake Makefiles" CMAKE_ARGS # Test is needed b/c of glitch in passing cmake_install_prefix -DTEST=${PROJECT_BINARY_DIR} -DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR} -DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} -DMYPROJ_FM_H_PATH=${PROJECT_SOURCE_DIR}/include -DEXTRA_INCLUDES=${PROJECT_BINARY_DIR}/include BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/ExtFM_cl INSTALL_DIR ${PROJECT_BINARY_DIR} ) The external project now yields the correct result for CMAKE_INSTALL_PREFIX, but the TEST variable is now wrong: -- CMAKE_INSTALL_PREFIX...............C:/temp/deploy2 -- TEST...............................C: | |||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||
Relationships |
| |||||||||||||||||||
Attached Files | ||||||||||||||||||||
Issue History | ||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||
2009-11-24 15:30 | Shane Dixon | New Issue | ||||||||||||||||||
2009-11-24 15:32 | Shane Dixon | Note Added: 0018580 | ||||||||||||||||||
2009-11-25 14:09 | Shane Dixon | Note Added: 0018591 | ||||||||||||||||||
2010-07-13 09:31 | Bill Hoffman | Status | new => assigned | |||||||||||||||||
2010-07-13 09:31 | Bill Hoffman | Assigned To | => David Cole | |||||||||||||||||
2010-07-23 06:10 | David Cole | Relationship added | has duplicate 0010735 | |||||||||||||||||
2010-08-29 02:37 | Kovarththanan Rajaratnam | Category | CMake => Modules | |||||||||||||||||
2010-08-29 02:40 | Kovarththanan Rajaratnam | Category | Modules => CMake | |||||||||||||||||
2010-09-08 17:44 | David Cole | Relationship added | has duplicate 0009971 | |||||||||||||||||
2010-09-08 17:46 | David Cole | Target Version | => CMake 2.8.3 | |||||||||||||||||
2010-09-08 18:43 | David Cole | Note Added: 0022145 | ||||||||||||||||||
2010-09-08 18:43 | David Cole | Status | assigned => resolved | |||||||||||||||||
2010-09-08 18:43 | David Cole | Resolution | open => fixed | |||||||||||||||||
2010-09-08 19:09 | David Cole | Note Added: 0022147 | ||||||||||||||||||
2010-09-09 11:11 | David Cole | Note Added: 0022162 | ||||||||||||||||||
2010-09-09 11:11 | David Cole | Status | resolved => feedback | |||||||||||||||||
2010-09-09 11:11 | David Cole | Resolution | fixed => reopened | |||||||||||||||||
2010-09-09 17:59 | David Cole | Priority | normal => high | |||||||||||||||||
2010-09-10 18:59 | David Cole | Note Added: 0022184 | ||||||||||||||||||
2010-09-10 18:59 | David Cole | Status | feedback => resolved | |||||||||||||||||
2010-09-10 18:59 | David Cole | Resolution | reopened => fixed | |||||||||||||||||
2010-09-10 19:08 | David Cole | Note Added: 0022187 | ||||||||||||||||||
2010-10-06 13:40 | David Cole | Fixed in Version | => CMake 2.8.3 | |||||||||||||||||
2010-11-09 22:57 | Philip Lowman | Status | resolved => closed | |||||||||||||||||
2010-11-15 17:57 | David Cole | Relationship added | related to 0011462 | |||||||||||||||||
2011-01-05 15:52 | David Cole | Note Added: 0024438 | ||||||||||||||||||
2016-06-06 13:37 | Brad King | View Status | private => public |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|