aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-21 11:34:24 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-21 23:33:41 -0700
commit38c9c97b6b2106304a9602ddf580b17e7bf56311 (patch)
treea3e0c66bfd50a0c17dd937294d88ad0a3963af9c
parentd45954a96b625ba1856ac97b429163a1919a3299 (diff)
downloadvcpkg-38c9c97b6b2106304a9602ddf580b17e7bf56311.tar.gz
vcpkg-38c9c97b6b2106304a9602ddf580b17e7bf56311.zip
[double-conversion] Fix on non-windows
-rw-r--r--ports/double-conversion/portfile.cmake7
-rw-r--r--scripts/cmake/vcpkg_configure_cmake.cmake2
2 files changed, 5 insertions, 4 deletions
diff --git a/ports/double-conversion/portfile.cmake b/ports/double-conversion/portfile.cmake
index 326d7e1c1..47f3fba4e 100644
--- a/ports/double-conversion/portfile.cmake
+++ b/ports/double-conversion/portfile.cmake
@@ -23,6 +23,9 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
# Rename exported target files into something vcpkg_fixup_cmake_targets expects
+if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/double-conversion)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/double-conversion)
+endif()
if(NOT VCPKG_USE_HEAD_VERSION)
if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
@@ -51,10 +54,6 @@ if(NOT VCPKG_USE_HEAD_VERSION)
vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-else()
- if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/double-conversion)
- vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/double-conversion)
- endif()
endif()
vcpkg_copy_pdbs()
diff --git a/scripts/cmake/vcpkg_configure_cmake.cmake b/scripts/cmake/vcpkg_configure_cmake.cmake
index 951b6443f..5fa42cb11 100644
--- a/scripts/cmake/vcpkg_configure_cmake.cmake
+++ b/scripts/cmake/vcpkg_configure_cmake.cmake
@@ -180,6 +180,8 @@ function(vcpkg_configure_cmake)
"-DVCPKG_C_FLAGS_DEBUG=${VCPKG_C_FLAGS_DEBUG}"
"-DVCPKG_CRT_LINKAGE=${VCPKG_CRT_LINKAGE}"
"-DVCPKG_LINKER_FLAGS=${VCPKG_LINKER_FLAGS}"
+ "-DCMAKE_INSTALL_LIBDIR=lib"
+ "-DCMAKE_INSTALL_BINDIR=bin"
)
if(DEFINED ARCH)