vcpkg/ports/parmetis/fix-root-cmakelist-2.patch
Gilles Grospellier 2a90d45fad
[parmetis] Fix build on x64-linux. (#17410)
* Fix parmetis build on x64-linux.

- Change 'METIS' directory to 'metis' because the true name is 'metis'.
- Remove the non working (on linux) link 'METIS' to 'metis'.
- Use absolute path for GKLIB_PATH. Using relative path does not work
  for test HAVE_THREADLOCALSTORAGE in metis/GKlib/GKlibSystem.cmake

* Update parmetis version in baseline.

* Update CONTROL file

* Apply reviewer comment.

* Update ci-baseline.txt

* Update hash in parmetis.json.

* Update port version instead of package version.

* Update hash version

* Try to build parmetis on 'osx'.
2021-04-28 17:39:30 -07:00

19 lines
776 B
Diff

--- a/CMakeLists.txt 2013-03-30 17:24:50.000000000 +0100
+++ b/CMakeLists.txt 2021-04-20 10:41:49.946801222 +0200
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 2.8)
project(ParMETIS)
-set(GKLIB_PATH METIS/GKlib CACHE PATH "path to GKlib")
-set(METIS_PATH METIS CACHE PATH "path to METIS")
+set(GKLIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/metis/GKlib CACHE PATH "path to GKlib")
+set(METIS_PATH metis CACHE PATH "path to METIS")
# Symlink ./metis to wherever metis is. This allows files to be
# included from metis/libmetis/.
-execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${METIS_PATH} metis)
+#execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${METIS_PATH} metis)
# Search for MPI.
# GK commented this out as it seems to be creating problems