summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/project_injected
diff options
context:
space:
mode:
authorfriendlyanon <friendlyanon_@hotmail.com>2022-11-11 15:15:30 (GMT)
committerfriendlyanon <friendlyanon_@hotmail.com>2022-11-11 21:49:36 (GMT)
commit59573bf5b9afb2157c73b18dd189a0927dafee52 (patch)
treea51943c3be8f4430a314560e5afba145013b28a3 /Tests/RunCMake/project_injected
parent23f3dd9f7c87bbf02685f388cb3913a8878e4f3b (diff)
downloadCMake-59573bf5b9afb2157c73b18dd189a0927dafee52.zip
CMake-59573bf5b9afb2157c73b18dd189a0927dafee52.tar.gz
CMake-59573bf5b9afb2157c73b18dd189a0927dafee52.tar.bz2
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
Diffstat (limited to 'Tests/RunCMake/project_injected')
-rw-r--r--Tests/RunCMake/project_injected/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/project_injected/RunCMakeTest.cmake b/Tests/RunCMake/project_injected/RunCMakeTest.cmake
index ba1a003..cf63e12 100644
--- a/Tests/RunCMake/project_injected/RunCMakeTest.cmake
+++ b/Tests/RunCMake/project_injected/RunCMakeTest.cmake
@@ -1,6 +1,7 @@
include(RunCMake)
set(RunCMake_TEST_OPTIONS
+ -DCMAKE_MINIMUM_REQUIRED_VERSION:STATIC=
# Simulate a previous CMake run that used `project(... VERSION ...)`
# in a non-injected call site.
-DCMAKE_PROJECT_VERSION:STATIC=1.2.3