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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers