File: ProjectIsTopLevel.cmake

package info (click to toggle)
cpptrace 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: cpp: 15,646; python: 962; ansic: 155; sh: 103; makefile: 86
file content (6 lines) | stat: -rw-r--r-- 148 bytes parent folder | download
1
2
3
4
5
6
# This variable is set by project() in CMake 3.21+
string(
  COMPARE EQUAL
  "${CMAKE_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}"
  PROJECT_IS_TOP_LEVEL
)