Skip to content

Commit

Permalink
cmake >= 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 28, 2023
1 parent 58be2bc commit 363d141
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/lapack.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
include(GNUInstallDirs)
include(ExternalProject)

if(CMAKE_VERSION VERSION_LESS 3.21)
get_property(not_top DIRECTORY PROPERTY PARENT_DIRECTORY)
if(NOT not_top)
set(PROJECT_IS_TOP_LEVEL true)
endif()
endif()

if(NOT PROJECT_IS_TOP_LEVEL)
message(STATUS "${PROJECT_NAME} ${PROJECT_VERSION} deferring to ${CMAKE_PROJECT_NAME} for LAPACK")
return()
Expand Down

0 comments on commit 363d141

Please sign in to comment.