Skip to content

Commit

Permalink
fix: entries
Browse files Browse the repository at this point in the history
  • Loading branch information
KOKIAOKI committed May 28, 2024
1 parent 7e5f86e commit 50c2d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ project(bbs3d)

## find thirdparty/Eigen or Eigen3 package
option(USE_THIRDPARTY_EIGEN "Include thirdparty eigen" OFF)
file(GLOB entries "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/Eigen*")
file(GLOB entries "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/Eigen/*")
list(LENGTH entries num_entries)
message(STATUS "num_entries in thirdparty/Eigen: ${num_entries}")
if(num_entries EQUAL 0)
set(USE_THIRDPARTY_EIGEN OFF)
find_package(Eigen3 REQUIRED)
else()
set(USE_THIRDPARTY_EIGEN ON)
Expand Down

0 comments on commit 50c2d2b

Please sign in to comment.