vcpkg/ports/vcpkg-pkgconfig-get-modules/portfile.cmake
Alexander Neumann 95c0444591
[scripts] add vcpkg-msbuild (#28773)
* add vcpkg-msbuild

* v db

* Apply some suggestions from code review

* revert v db and format manifest

* v db

* fix missing rename

* v db

* revert back to USE_MSVC_SYNTAX_ON_WINDOWS

* v db

* Fix logic

* v db

* Update versions/v-/vcpkg-msbuild.json

* Apply suggestions from code review

Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>

* remove include destination since it wasn't used any way

* v db

---------

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
2023-06-23 12:07:47 -07:00

15 lines
674 B
CMake

if(NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
# make FATAL_ERROR in CI when issue #16773 fixed
message(WARNING "vcpkg-pkgconfig-get-modules is a host-only port; please mark it as a host port in your dependencies.")
endif()
file(COPY
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${VCPKG_ROOT_DIR}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/x_vcpkg_pkgconfig_get_modules.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/x_vcpkg_pkgconfig_get_modules.cmake" @ONLY)
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)