aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-07 19:30:21 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-07 19:30:30 -0800
commitc2afc5266cb997ec97c0a2e06997cc993ace4125 (patch)
tree60e3d26c2567166bab7238a368fb24612ec0cf7e
parentca1e6d8ab7b4e345fdab88afd11c03bf5fcc43a3 (diff)
downloadvcpkg-c2afc5266cb997ec97c0a2e06997cc993ace4125.tar.gz
vcpkg-c2afc5266cb997ec97c0a2e06997cc993ace4125.zip
[cgal] Avoid using absolute paths in cmake config file
-rw-r--r--ports/cgal/CONTROL2
-rw-r--r--ports/cgal/portfile.cmake5
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/cgal/CONTROL b/ports/cgal/CONTROL
index 2fc86bd11..c3ab7fb3e 100644
--- a/ports/cgal/CONTROL
+++ b/ports/cgal/CONTROL
@@ -1,4 +1,4 @@
Source: cgal
-Version: 4.11-2
+Version: 4.11-3
Build-Depends: mpfr, mpir, zlib, qt5, boost-format, boost-container, boost-iterator, boost-variant, boost-any, boost-unordered, boost-random
Description: The Computational Geometry Algorithms Library (CGAL) is a C++ library that aims to provide easy access to efficient and reliable algorithms in computational geometry.
diff --git a/ports/cgal/portfile.cmake b/ports/cgal/portfile.cmake
index 642e88920..6b64d5d26 100644
--- a/ports/cgal/portfile.cmake
+++ b/ports/cgal/portfile.cmake
@@ -25,5 +25,10 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(READ ${CURRENT_PACKAGES_DIR}/share/cgal/CGALConfig.cmake _contents)
+string(REPLACE "CGAL_IGNORE_PRECONFIGURED_GMP" "1" _contents "${_contents}")
+string(REPLACE "CGAL_IGNORE_PRECONFIGURED_MPFR" "1" _contents "${_contents}")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/cgal/CGALConfig.cmake "${_contents}")
+
# Handle copyright of suitesparse and metis
file(COPY ${SOURCE_PATH}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/cgal)