mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 07:19:08 +08:00
75381ea7fa
* fix gn path error on windows
* add quotes
* vcpkg cmake guidelines
* Fix version database.
* Use Z_VCPKG_BACKCOMPAT_MESSAGE_LEVEL instead of WARNING
* Quotes 🤦
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
13 lines
515 B
CMake
13 lines
515 B
CMake
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
if(NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET)
|
|
message(FATAL_ERROR "vcpkg-gn is a host-only port; please mark it as a host port in your dependencies.")
|
|
endif()
|
|
|
|
file(INSTALL
|
|
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
|
|
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_gn_configure.cmake"
|
|
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_gn_install.cmake"
|
|
"${CMAKE_CURRENT_LIST_DIR}/z_vcpkg_gn_fixup_path.cmake"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|