Skip to content

Commit

Permalink
Avoid using find_package after FetchContent
Browse files Browse the repository at this point in the history
  • Loading branch information
derpda committed Jul 12, 2022
1 parent 6f73e8a commit 9e13f48
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ if(NOT EIGEN3_FOUND)
GIT_SHALLOW ON)
FetchContent_MakeAvailable(eigen)
unset(BUILD_TESTING CACHE)
FetchContent_GetProperties(eigen BINARY_DIR Eigen3_DIR)
find_package(Eigen3 ${EIGEN_VERSION} REQUIRED)
endif()

add_library(${PROJECT_NAME} SHARED
Expand Down

0 comments on commit 9e13f48

Please sign in to comment.