nix-gcc-multi-issue/cmake/project-is-top-level.cmake

7 lines
154 B
CMake
Raw Normal View History

2024-05-14 14:46:35 +00:00
# This variable is set by project() in CMake 3.21+
string(
COMPARE EQUAL
"${CMAKE_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}"
PROJECT_IS_TOP_LEVEL
)