myx/backports/TopLevelProject.cmake

11 lines
193 B
CMake
Raw Normal View History

2022-09-28 22:48:13 +00:00
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()