vcpkg/ports/ctemplate/portfile.cmake

24 lines
726 B
CMake
Raw Normal View History

2017-06-24 14:27:31 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OlafvdSpek/ctemplate
REF 1c397b63e62dc6547054f4711c27918aedce4c2d # accessed on 2020-09-14
SHA512 9691393cbb89972e95dba3cb802d0a0379f8f45cddc696e4ce223eb94887b3be46a9d999cac161069261ef63ba26fbdc392c53c3f977e1a7ae51768caa7739ea
2017-06-24 14:27:31 +08:00
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2017-06-24 14:27:31 +08:00
2017-09-04 17:49:03 +08:00
vcpkg_find_acquire_program(PYTHON3)
2017-06-24 14:27:31 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}"
2017-06-24 14:27:31 +08:00
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_cmake_install()
2017-06-24 14:27:31 +08:00
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ctemplate" RENAME copyright)
2017-06-24 14:27:31 +08:00
vcpkg_copy_pdbs()