mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
2878a7d60f
Co-authored-by: FrankXie <v-frankxie@microsoft.com> Co-authored-by: admin <admin@windows.com> Co-authored-by: paipai <noexist@gmail.com> Co-authored-by: Frank <1433351828@qq.com>
27 lines
800 B
CMake
27 lines
800 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO winsoft666/veigar
|
|
HEAD_REF master
|
|
REF "${VERSION}"
|
|
SHA512 cfe7986d5d17e21ca7aff1f1e20b79136aef7e0da96e713f0077b3ad843a7a812202f0db300616c2ca8b925fb3e054bc76e24fb14ad83761ee34fb9946c33829
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" VEIGAR_USE_STATIC_CRT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DVEIGAR_USE_STATIC_CRT:BOOL=${VEIGAR_USE_STATIC_CRT}
|
|
-DVEIGAR_BUILD_TESTS:BOOL=OFF
|
|
-DVEIGAR_BUILD_EXAMPLES:BOOL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|