aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-uninstall
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2021-05-28 19:00:20 +0200
committerGitHub <noreply@github.com>2021-05-28 10:00:20 -0700
commit0de461216d66a4d5ca1870254e27258a66f6e361 (patch)
tree963314c8051cb74a061075b20f26aec6fd8a8952 /ports/boost-uninstall
parent9d7244f2f6a4f6a34c4e0b3ecbf391323e379a43 (diff)
downloadvcpkg-0de461216d66a4d5ca1870254e27258a66f6e361.tar.gz
vcpkg-0de461216d66a4d5ca1870254e27258a66f6e361.zip
[vcpkg.cmake] Cleanup every special case in the find_package override (#18047)
* move boost out of the toolchain * move icu out of the toolchain * remove CURL from the toolchain (was already unreachable?) * remove gsl from toolchain * remove grpc from toolchain * version stuff * fix indent and missing endif() * version stuff * Revert changes to vcpkg.cmake * push port version * version stuff
Diffstat (limited to 'ports/boost-uninstall')
-rw-r--r--ports/boost-uninstall/portfile.cmake2
-rw-r--r--ports/boost-uninstall/vcpkg-cmake-wrapper.cmake11
-rw-r--r--ports/boost-uninstall/vcpkg.json1
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"
}