vcpkg/ports/vcpkg-cmake-config/portfile.cmake
nicole mazzuca c8f6537b80
[ci,vcpkg-cmake-*] remove host-only nature of vcpkg-cmake-* ports (#16774)
* remove host-only nature of vcpkg-cmake-* ports

* versions

* fix fmt on uwp
2021-03-18 15:06:03 -07:00

13 lines
495 B
CMake

if(NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET)
# make FATAL_ERROR in CI when issue #16773 fixed
message(WARNING "vcpkg-cmake-config is a host-only port; please mark it as a host port in your dependencies.")
endif()
file(INSTALL
"${CMAKE_CURRENT_LIST_DIR}/vcpkg_cmake_config_fixup.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
"${CMAKE_CURRENT_LIST_DIR}/copyright"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)