Files
CMake/Tests/RunCMake/project/CMakeLists.txt
T
friendlyanon 59573bf5b9 project: Warn at top-level if cmake_minimum_required wasn't called
The top-level project() call will now issue an AUTHOR_WARNING if it
wasn't called after cmake_minimum_required().

Fixes: #24071
2022-11-11 22:49:36 +01:00

6 lines
170 B
CMake

if(NOT "x${RunCMake_TEST}" STREQUAL "xNoMinimumRequired")
cmake_minimum_required(VERSION 2.8.12)
endif()
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)