File: vendor_substitute.cmake

package info (click to toggle)
apt 1.8.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,680 kB
  • sloc: cpp: 67,708; sh: 24,865; xml: 5,187; perl: 577; ansic: 190; makefile: 28; python: 28
file content (8 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (5)
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}")