diff options
Diffstat (limited to 'ports/boost-uninstall')
| -rw-r--r-- | ports/boost-uninstall/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/boost-uninstall/vcpkg-cmake-wrapper.cmake | 11 | ||||
| -rw-r--r-- | ports/boost-uninstall/vcpkg.json | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/ports/boost-uninstall/portfile.cmake b/ports/boost-uninstall/portfile.cmake index a06925e40..07fa29731 100644 --- a/ports/boost-uninstall/portfile.cmake +++ b/ports/boost-uninstall/portfile.cmake @@ -2,3 +2,5 @@ set(VCPKG_POLICY_EMPTY_PACKAGE enabled) message(STATUS "\nPlease use the following command when you need to remove all boost ports/components:\n\
\"./vcpkg remove boost-uninstall:${TARGET_TRIPLET} --recurse\"\n")
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/boost/vcpkg-cmake-wrapper.cmake" @ONLY)
\ No newline at end of file diff --git a/ports/boost-uninstall/vcpkg-cmake-wrapper.cmake b/ports/boost-uninstall/vcpkg-cmake-wrapper.cmake new file mode 100644 index 000000000..d3e5109b2 --- /dev/null +++ b/ports/boost-uninstall/vcpkg-cmake-wrapper.cmake @@ -0,0 +1,11 @@ +set(Boost_USE_STATIC_LIBS OFF)
+set(Boost_USE_MULTITHREADED ON)
+unset(Boost_USE_STATIC_RUNTIME)
+set(Boost_NO_BOOST_CMAKE ON)
+unset(Boost_USE_STATIC_RUNTIME CACHE)
+if("${CMAKE_VS_PLATFORM_TOOLSET}" STREQUAL "v120")
+ set(Boost_COMPILER "-vc120")
+else()
+ set(Boost_COMPILER "-vc140")
+endif()
+_find_package(${ARGS})
\ No newline at end of file diff --git a/ports/boost-uninstall/vcpkg.json b/ports/boost-uninstall/vcpkg.json index f419d200f..09bef55d6 100644 --- a/ports/boost-uninstall/vcpkg.json +++ b/ports/boost-uninstall/vcpkg.json @@ -1,6 +1,7 @@ { "name": "boost-uninstall", "version-string": "1.75.0", + "port-version": 1, "description": "boost uninstall port", "homepage": "https://boost.org" } |
