summaryrefslogtreecommitdiff
path: root/CMake/vendor_substitute.cmake
blob: 71449c9e8c0be3e0ed8c07af85b11ea5bd64d9c9 (plain)
1
2
3
4
5
6
7
8
file(READ ${IN} input)
foreach(variable ${VARS})
    execute_process(COMMAND ${PROJECT_SOURCE_DIR}/vendor/getinfo
                            --vendor ${CURRENT_VENDOR} ${variable}
                    OUTPUT_VARIABLE value OUTPUT_STRIP_TRAILING_WHITESPACE)
    string(REPLACE "&${variable};" "${value}" input "${input}")
endforeach()
file(WRITE ${OUT} "${input}")