aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-02-23 18:00:09 +0800
committermyd7349 <myd7349@gmail.com>2019-02-23 18:00:09 +0800
commit3830517ec7519b823f5d8c404710889c6bd00278 (patch)
treed270586fa2272ae8f0cfa2765b06c1904f865a32
parentb04cb5e35a721ea5a390a0d15c6b643e46c49b33 (diff)
downloadvcpkg-3830517ec7519b823f5d8c404710889c6bd00278.tar.gz
vcpkg-3830517ec7519b823f5d8c404710889c6bd00278.zip
[stxxl] Fix STXXL_INCLUDE_DIRS
-rw-r--r--ports/stxxl/portfile.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/ports/stxxl/portfile.cmake b/ports/stxxl/portfile.cmake
index f0f78573d..ec3c5531b 100644
--- a/ports/stxxl/portfile.cmake
+++ b/ports/stxxl/portfile.cmake
@@ -46,6 +46,12 @@ if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT})
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
endif()
+vcpkg_replace_string(
+ ${CURRENT_PACKAGES_DIR}/share/${PORT}/stxxl-config.cmake
+ "\${STXXL_CMAKE_DIR}/../include"
+ "\${STXXL_CMAKE_DIR}/../../include"
+)
+
if(CMAKE_HOST_WIN32)
set(EXECUTABLE_SUFFIX ".exe")
else()
@@ -60,7 +66,8 @@ file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/bin
${CURRENT_PACKAGES_DIR}/debug/share
- ${CURRENT_PACKAGES_DIR}/bin)
+ ${CURRENT_PACKAGES_DIR}/bin
+)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)