[cmake-developers] [CMake 0016056]: file(GENERATE) not processing variables from INPUT file
Mantis Bug Tracker
mantis at public.kitware.com
Fri Apr 8 13:18:45 EDT 2016
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=16056
======================================================================
Reported By: johnnyzz
Assigned To:
======================================================================
Project: CMake
Issue ID: 16056
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-04-08 19:18 CEST
Last Modified: 2016-04-08 19:18 CEST
======================================================================
Summary: 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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-04-08 19:18 johnnyzz New Issue
2016-04-08 19:18 johnnyzz File Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list