mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-26 04:09:35 +03:00
Change `getFirstProject` macro to more flexible version `getProjectNames`
6 lines
160 B
CMake
6 lines
160 B
CMake
getProjectNames(projects)
|
|
list(GET projects 0 first_project)
|
|
if(NOT first_project STREQUAL "ALL_BUILD")
|
|
error("ALL_BUILD is not the startup project")
|
|
endif()
|