Commit 3e6a50b1 authored by Gregor Olenik's avatar Gregor Olenik
Browse files

Fix find_package execution after external ginkgo was included #5


Co-authored-by: Terry Cojean's avatartcojean <terry.cojean@kit.edu>
parent 614387b8
......@@ -23,7 +23,9 @@ include(cmake/install_helpers.cmake)
ginkgo_find_package(Ginkgo "Ginkgo::ginkgo" FALSE 1.4.0)
add_subdirectory(third_party)
if (NOT Ginkgo)
# If ginkgo wasn't found so far look for the third_party installation
if (NOT Ginkgo_FOUND)
find_package(Ginkgo 1.4.0 REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR}/third_party/ginkgo/build/install/lib/cmake)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment