aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/boost-cmake/CMakeLists.txt.in
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/boost-cmake/CMakeLists.txt.in')
-rw-r--r--vcpkg/ports/boost-cmake/CMakeLists.txt.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-cmake/CMakeLists.txt.in b/vcpkg/ports/boost-cmake/CMakeLists.txt.in
new file mode 100644
index 0000000..26cfac7
--- /dev/null
+++ b/vcpkg/ports/boost-cmake/CMakeLists.txt.in
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.21)
+
+include(CMakePackageConfigHelpers)
+
+project(Boost VERSION @SEMVER_VERSION@ LANGUAGES NONE)
+
+set(CONFIG_VERSION_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/tmpinst/BoostConfigVersion.cmake")
+
+write_basic_package_version_file("${CONFIG_VERSION_FILE_NAME}" COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
+
+install(FILES
+ "${CONFIG_VERSION_FILE_NAME}"
+ "${CMAKE_CURRENT_SOURCE_DIR}/config/BoostConfig.cmake"
+ DESTINATION "share/boost") \ No newline at end of file