MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016056 | CMake | CMake | public | 2016-04-08 13:18 | 2016-06-10 14:21 |
Reporter | johnnyzz | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.5.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0016056: file(GENERATE) not processing variables from INPUT file | ||||
Description | There is a bug when generating a file with: file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/output1.txt" INPUT ${CMAKE_SOURCE_DIR}/input.txt ) file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/output2.txt" CONTENT "SOURCE DIR = '${CMAKE_SOURCE_DIR}'" ) - Using "INPUT filename", variables are not processed, but "CONTENT text" with the same content works properly | ||||
Steps To Reproduce | 1) cmake . 2) cat output1.txt 3) cat output2.txt -> The variable in output1.txt is not replaced by its value | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5671/CMakeLists.txt ![]() https://public.kitware.com/Bug/file/5672/input.txt | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-04-08 13:18 | johnnyzz | New Issue | |||
2016-04-08 13:18 | johnnyzz | File Added: CMakeLists.txt | |||
2016-04-08 13:19 | johnnyzz | File Added: input.txt | |||
2016-04-08 13:27 | Brad King | Note Added: 0040830 | |||
2016-04-08 13:27 | Brad King | Status | new => resolved | ||
2016-04-08 13:27 | Brad King | Resolution | open => no change required | ||
2016-04-08 13:30 | Brad King | Note Added: 0040831 | |||
2016-04-08 14:01 | johnnyzz | Note Added: 0040832 | |||
2016-06-10 14:21 | Kitware Robot | Note Added: 0041198 | |||
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|