]> git.saurik.com Git - apt.git/blame_incremental - CMake/vendor_substitute.cmake
CMake: Improve handling of vendor files
[apt.git] / CMake / vendor_substitute.cmake
... / ...
CommitLineData
1file(READ ${IN} input)
2foreach(variable ${VARS})
3 execute_process(COMMAND ${PROJECT_SOURCE_DIR}/vendor/getinfo
4 --vendor ${CURRENT_VENDOR} ${variable}
5 OUTPUT_VARIABLE value OUTPUT_STRIP_TRAILING_WHITESPACE)
6 string(REPLACE "&${variable};" "${value}" input "${input}")
7endforeach()
8file(WRITE ${OUT} "${input}")