AimRT/_deps/libunifex-src/cmake/project-is-top-level.cmake

8 lines
222 B
CMake
Raw Permalink Normal View History

2025-01-12 20:42:42 +08:00
# Taken from: https://github.com/friendlyanon/cmake-init-executable
# This variable is set by project() in CMake 3.21+
string(
COMPARE EQUAL
"${CMAKE_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}"
PROJECT_IS_TOP_LEVEL
)