aboutsummaryrefslogtreecommitdiff
path: root/ports/lapack
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-08-07 07:10:15 +0200
committerGitHub <noreply@github.com>2020-08-06 22:10:15 -0700
commitda839ba61a95a07de889d0bcc5d57c1681281a89 (patch)
tree17c423dfe9dc869939d3a85f9601bf9bef354288 /ports/lapack
parent4f9117c0dea8e58be6dc4102e40238f57b7b8533 (diff)
downloadvcpkg-da839ba61a95a07de889d0bcc5d57c1681281a89.tar.gz
vcpkg-da839ba61a95a07de889d0bcc5d57c1681281a89.zip
[lapack] add metaport lapack to switch lapack impl with an overlay (#12464)
* [lapack-select] add port lapack-select to select the lapack implementation * move (!osx) check into lapack select * correct the platform selection logic so that clapack is not forced. added external as a feature. made a dummy project to find the external provided LAPACK * fix the oscx regression. Actually need to specify external dependency on OSX * rename port to lapack and use build-depends
Diffstat (limited to 'ports/lapack')
-rw-r--r--ports/lapack/CMakeLists.txt5
-rw-r--r--ports/lapack/CONTROL4
-rw-r--r--ports/lapack/portfile.cmake3
3 files changed, 12 insertions, 0 deletions
diff --git a/ports/lapack/CMakeLists.txt b/ports/lapack/CMakeLists.txt
new file mode 100644
index 000000000..07b2818b1
--- /dev/null
+++ b/ports/lapack/CMakeLists.txt
@@ -0,0 +1,5 @@
+cmake_minimum_required(VERSION 3.17)
+
+project(Find_LAPACK_external)
+find_package(LAPACK REQUIRED)
+#TODO make sure that the found LAPACK is outside VCPKG \ No newline at end of file
diff --git a/ports/lapack/CONTROL b/ports/lapack/CONTROL
new file mode 100644
index 000000000..0d7883a0e
--- /dev/null
+++ b/ports/lapack/CONTROL
@@ -0,0 +1,4 @@
+Source: lapack
+Version: 0
+Description: Metapackage for packages which provide LAPACK
+Build-Depends: clapack (!osx) \ No newline at end of file
diff --git a/ports/lapack/portfile.cmake b/ports/lapack/portfile.cmake
new file mode 100644
index 000000000..cb7d75de9
--- /dev/null
+++ b/ports/lapack/portfile.cmake
@@ -0,0 +1,3 @@
+SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+# Make sure LAPACK can be found
+vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR})