Начало
This commit is contained in:
10
cmake/myx/backports/TopLevelProject.cmake
Normal file
10
cmake/myx/backports/TopLevelProject.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
include_guard(GLOBAL)
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 3.21)
|
||||
get_property(nt DIRECTORY PROPERTY PARENT_DIRECTORY)
|
||||
if(NOT nt)
|
||||
set(PROJECT_IS_TOP_LEVEL true)
|
||||
endif()
|
||||
unset(nt)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user