mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
Cover that `UNIX`, `LINUX`, and other host platform variables are not defined after `project()` when `CMAKE_SYSTEM_NAME` is `Generic`. Issue: #28200
6 lines
181 B
CMake
6 lines
181 B
CMake
foreach(var APPLE UNIX WIN32 CYGWIN MSYS BSD LINUX AIX)
|
|
if(DEFINED ${var})
|
|
message(SEND_ERROR "${var} is defined as '${${var}}' for a Generic system.")
|
|
endif()
|
|
endforeach()
|