Skip to content

Commit

Permalink
Default to bundled Eigen version
Browse files Browse the repository at this point in the history
  • Loading branch information
dsieger committed Jul 6, 2023
1 parent 81db56b commit 2382778
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ if(PMP_BUILD_VIS)
endif(PMP_BUILD_VIS)

# setup Eigen
find_package(Eigen3 3.1.0)
if (EIGEN3_FOUND)
set(ENV{EIGEN3_ROOT} "external/eigen")
find_package(Eigen3 3.4.0 REQUIRED)
if(EIGEN3_FOUND)
include_directories(${EIGEN3_INCLUDE_DIR})
else()
set(EIGEN_SOURCE_DIR "external/eigen")
include_directories(${EIGEN_SOURCE_DIR})
endif()

include(AddFileDependencies)
Expand Down Expand Up @@ -145,7 +143,9 @@ endif()

if(EMSCRIPTEN)
add_compile_options(--no-heap-copy)
add_link_options("SHELL:-sWASM=1 -sUSE_WEBGL2=1 -sUSE_GLFW=3 -sALLOW_MEMORY_GROWTH=1 -sALLOW_TABLE_GROWTH=1 -sSTACK_SIZE=5MB -sDISABLE_EXCEPTION_CATCHING=0")
add_link_options(
"SHELL:-sWASM=1 -sUSE_WEBGL2=1 -sUSE_GLFW=3 -sALLOW_MEMORY_GROWTH=1 -sALLOW_TABLE_GROWTH=1 -sSTACK_SIZE=5MB -sDISABLE_EXCEPTION_CATCHING=0"
)
set(CMAKE_EXECUTABLE_SUFFIX ".html")
endif()

Expand Down

0 comments on commit 2382778

Please sign in to comment.