]> git.saurik.com Git - apt.git/blob - CMake/vendor_substitute.cmake
http: clear content before reporting the failure
[apt.git] / CMake / vendor_substitute.cmake
1 file(READ ${IN} input)
2 foreach(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}")
7 endforeach()
8 file(WRITE ${OUT} "${input}")