Browse Source

Fix 2228 with blas check on linux (#2240)

* split up 406; cmake

* split up 716

* rm old file

* 716 changes to main

* 709 split up

* missing include

* special syntax for windows ❄️

* stupid windows struct/class

* split up 805

* split up 610)'

* Fix 2228 with blas check on linux
Alec Jacobson 2 years ago
parent
commit
9162fb7d79
1 changed files with 10 additions and 0 deletions
  1. 10 0
      CMakeLists.txt

+ 10 - 0
CMakeLists.txt

@@ -55,6 +55,8 @@ set_property(GLOBAL PROPERTY __igl_module_path ${CMAKE_MODULE_PATH})
 
 set(LIBIGL_DEFAULT_CGAL ${LIBIGL_TOPLEVEL_PROJECT})
 set(MATLAB_ADDITIONAL_VERSIONS
+    "R2023b=10.4"
+    "R2023a=10.4"
     "R2022b=10.3"
     "R2022a=10.2"
     "R2021b=10.1"
@@ -74,6 +76,14 @@ if(LIBIGL_TOPLEVEL_PROJECT)
         message(WARNING "Mosek not found, disabling igl_restricted::mosek module.")
     endif()
 endif()
+set(LIBIGL_DEFAULT_COMISO ${LIBIGL_TOPLEVEL_PROJECT})
+if(LIBIGL_TOPLEVEL_PROJECT AND (NOT APPLE) AND UNIX)
+  find_package(BLAS QUIET)
+    if(NOT BLAS_FOUND)
+        set(LIBIGL_DEFAULT_COMISO OFF)
+        message(WARNING "BLAS not found, disabling igl_copyleft::comiso module.")
+    endif()
+endif()
 
 # Build tests and tutorials
 option(LIBIGL_BUILD_TESTS      "Build libigl unit test"                ${LIBIGL_TOPLEVEL_PROJECT})