aboutsummaryrefslogtreecommitdiff
path: root/ports/libcds
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-11 23:41:51 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-11 23:42:54 -0700
commit9f9778ccff48981a691bf34f30ecc4bf2efd5ac1 (patch)
tree10ec609d13836ddc266345f441bae6f9e824056a /ports/libcds
parentece289b9a6466dca885fd2555ed783d70dcad9bf (diff)
downloadvcpkg-9f9778ccff48981a691bf34f30ecc4bf2efd5ac1.tar.gz
vcpkg-9f9778ccff48981a691bf34f30ecc4bf2efd5ac1.zip
[many ports] Improve behavior on Linux and general cleanup
Diffstat (limited to 'ports/libcds')
-rw-r--r--ports/libcds/lib-suffix-option.patch13
-rw-r--r--ports/libcds/portfile.cmake5
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/libcds/lib-suffix-option.patch b/ports/libcds/lib-suffix-option.patch
new file mode 100644
index 000000000..eeb2f3e2e
--- /dev/null
+++ b/ports/libcds/lib-suffix-option.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e891aee..9f12295 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -125,7 +125,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+
+ if(CMAKE_TARGET_ARCHITECTURE STREQUAL "x86_64")
+ list(APPEND LIBCDS_PUBLIC_CXX_FLAGS "-mcx16")
+- set(LIB_SUFFIX "64")
++ set(LIB_SUFFIX "64" CACHE STRING "")
+
+ # GCC-7: 128-bit atomics support is implemented via libatomic on amd64
+ # see https://gcc.gnu.org/ml/gcc/2017-01/msg00167.html
diff --git a/ports/libcds/portfile.cmake b/ports/libcds/portfile.cmake
index f13759c05..c3ba2ec65 100644
--- a/ports/libcds/portfile.cmake
+++ b/ports/libcds/portfile.cmake
@@ -10,7 +10,9 @@ vcpkg_from_github(
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
- PATCHES ${CMAKE_CURRENT_LIST_DIR}/cmake-install.patch
+ PATCHES
+ ${CMAKE_CURRENT_LIST_DIR}/cmake-install.patch
+ ${CMAKE_CURRENT_LIST_DIR}/lib-suffix-option.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC)
@@ -24,6 +26,7 @@ vcpkg_configure_cmake(
-DENABLE_STRESS_TEST=OFF
-DDISABLE_INSTALL_STATIC=${DISABLE_INSTALL_STATIC}
-DDISABLE_INSTALL_SHARED=${DISABLE_INSTALL_SHARED}
+ "-DLIB_SUFFIX="
)
vcpkg_install_cmake()