diff options
| author | Martin Moene <martin.moene@gmail.com> | 2019-05-27 10:04:47 +0200 |
|---|---|---|
| committer | Martin Moene <martin.moene@gmail.com> | 2019-05-27 10:04:47 +0200 |
| commit | e9e6acb5313d37a4b86ba207254942ee3cda2ec4 (patch) | |
| tree | da7033f32e19a423a0c0c5c79a358ff2e1dfce95 | |
| parent | 549bdaa57ccc8034cb802d2a45543cf45d22b5bf (diff) | |
| download | vcpkg-e9e6acb5313d37a4b86ba207254942ee3cda2ec4.tar.gz vcpkg-e9e6acb5313d37a4b86ba207254942ee3cda2ec4.zip | |
[any-lite] Perform CMake install
| -rw-r--r-- | ports/any-lite/portfile.cmake | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/ports/any-lite/portfile.cmake b/ports/any-lite/portfile.cmake index b4689a3e3..25cb5704e 100644 --- a/ports/any-lite/portfile.cmake +++ b/ports/any-lite/portfile.cmake @@ -7,5 +7,25 @@ vcpkg_from_github( SHA512 703900d7bac96d41f903b6cabba4bce15ef3cf7ef0a6a66de76230498ededff110e43d68d4a3fd6996869b2edd001f69bd53039a214d06b774ce99518f384a68
)
-file(INSTALL ${SOURCE_PATH}/include/nonstd/any.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/nonstd)
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/any-lite RENAME copyright)
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DANY_LITE_OPT_BUILD_TESTS=OFF
+ -DANY_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(
+ CONFIG_PATH lib/cmake/any-lite
+)
+
+file( REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug
+ ${CURRENT_PACKAGES_DIR}/lib
+)
+
+file( INSTALL
+ ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/any-lite RENAME copyright
+)
|
