Skip to content

Commit 55120c0

Browse files
committed
work with CMake < 3.21
1 parent f4039ae commit 55120c0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmake/lapack.cmake

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
include(GNUInstallDirs)
22
include(ExternalProject)
33

4-
if(NOT PROJECT_IS_TOP_LEVEL)
5-
message(STATUS "${PROJECT_NAME} ${PROJECT_VERSION} deferring to ${CMAKE_PROJECT_NAME} for LAPACK")
6-
return()
7-
endif()
8-
9-
if(find_lapack)
4+
if(NOT TARGET LAPACK::LAPACK AND find_lapack)
105
find_package(LAPACK)
116
endif()
127

0 commit comments

Comments
 (0)