aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch')
-rw-r--r--vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch76
1 files changed, 76 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch b/vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch
new file mode 100644
index 0000000..96559fe
--- /dev/null
+++ b/vcpkg/ports/boost-cmake/0002-remove-prefix-and-suffix.patch
@@ -0,0 +1,76 @@
+diff --git a/include/BoostInstall.cmake b/include/BoostInstall.cmake
+index 1127c6f..91d3a86 100644
+--- a/include/BoostInstall.cmake
++++ b/include/BoostInstall.cmake
+@@ -67,11 +67,6 @@ function(__boost_install_set_output_name LIB TYPE VERSION)
+ set(name_debug ${LIB})
+ set(name_release ${LIB})
+
+- # prefix
+- if(WIN32 AND TYPE STREQUAL "STATIC_LIBRARY")
+- set_target_properties(${LIB} PROPERTIES PREFIX "lib")
+- endif()
+-
+ # toolset
+ if(BOOST_INSTALL_LAYOUT STREQUAL versioned)
+
+@@ -289,14 +284,6 @@ function(boost_install_target)
+
+ set(CONFIG_INSTALL_DIR "${BOOST_INSTALL_CMAKEDIR}/${LIB}-${__VERSION}")
+
+- if(TYPE STREQUAL "SHARED_LIBRARY")
+- string(APPEND CONFIG_INSTALL_DIR "-shared")
+- endif()
+-
+- if(TYPE STREQUAL "STATIC_LIBRARY")
+- string(APPEND CONFIG_INSTALL_DIR "-static")
+- endif()
+-
+ install(TARGETS ${LIB} EXPORT ${LIB}-targets
+ # explicit destination specification required for 3.13, 3.14 no longer needs it
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+@@ -466,44 +453,6 @@ function(boost_install_target)
+
+ endif()
+
+- if("${LIB}" STREQUAL "boost_exception" OR "${LIB}" STREQUAL "boost_test_exec_monitor")
+-
+- # These two libraries are hardcoded to STATIC
+-
+- else()
+-
+- if(TYPE STREQUAL "SHARED_LIBRARY")
+-
+- file(APPEND "${CONFIG_VERSION_FILE_NAME}"
+-
+- "\n"
+- "# Do not return shared libraries when Boost_USE_STATIC_LIBS is ON\n"
+- "if(NOT PACKAGE_VERSION_UNSUITABLE AND Boost_USE_STATIC_LIBS)\n"
+- " set(PACKAGE_VERSION_UNSUITABLE TRUE)\n"
+- " set(PACKAGE_VERSION \"\${PACKAGE_VERSION} (shared)\")\n"
+- " return()\n"
+- "endif()\n"
+- )
+-
+- endif()
+-
+- if(TYPE STREQUAL "STATIC_LIBRARY")
+-
+- file(APPEND "${CONFIG_VERSION_FILE_NAME}"
+-
+- "\n"
+- "# Do not return static libraries when Boost_USE_STATIC_LIBS is OFF\n"
+- "if(NOT PACKAGE_VERSION_UNSUITABLE AND DEFINED Boost_USE_STATIC_LIBS AND NOT Boost_USE_STATIC_LIBS)\n"
+- " set(PACKAGE_VERSION_UNSUITABLE TRUE)\n"
+- " set(PACKAGE_VERSION \"\${PACKAGE_VERSION} (static)\")\n"
+- " return()\n"
+- "endif()\n"
+- )
+-
+- endif()
+-
+- endif()
+-
+ install(FILES "${CONFIG_VERSION_FILE_NAME}" DESTINATION "${CONFIG_INSTALL_DIR}")
+
+ endfunction()