gd-tools/cmake/project-is-top-level.cmake
2024-02-04 14:24:04 -04:00

7 lines
154 B
CMake

# This variable is set by project() in CMake 3.21+
string(
COMPARE EQUAL
"${CMAKE_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}"
PROJECT_IS_TOP_LEVEL
)