Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

CMake: fix for SuperLU

Campbell Bartonfb7729aaaf5c
diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txt
index bddb3f9f7..0860a640d 100644
--- a/toonz/sources/CMakeLists.txt
+++ b/toonz/sources/CMakeLists.txt
@@ -288,7 +288,6 @@ elseif(UNIX)
find_package(GLEW)
find_package(SuperLU REQUIRED)
- set(SUPERLU_INCLUDE_DIR ${SUPERLU_INCLUDE_DIR}/superlu)
set(SUPERLU_LIB ${SUPERLU_LIBRARY})
find_package(JPEG REQUIRED)
diff --git a/toonz/sources/tnzext/CMakeLists.txt b/toonz/sources/tnzext/CMakeLists.txt
index ac8211226..064afd069 100644
--- a/toonz/sources/tnzext/CMakeLists.txt
+++ b/toonz/sources/tnzext/CMakeLists.txt
@@ -94,10 +94,19 @@ if(APPLE)
find_library(ACCE_LIB Accelerate)
endif()
-include_directories(
- SYSTEM
- ${SDKROOT}/superlu/SuperLU_4.1/SRC
-)
+if(WIN32 OR APPLE)
+ # Warning, this looks wrong,
+ # should _only_ use SUPERLU_INCLUDE_DIR, for now do this with Linux.
+ include_directories(
+ SYSTEM
+ ${SDKROOT}/superlu/SuperLU_4.1/SRC
+ )
+else()
+ include_directories(
+ SYSTEM
+ ${SUPERLU_INCLUDE_DIR}
+ )
+endif()
if(WIN32)
target_link_libraries(tnzext