summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CommandLine
diff options
context:
space:
mode:
authorfriendlyanon <friendlyanon_@hotmail.com>2022-11-11 16:15:30 +0100
committerfriendlyanon <friendlyanon_@hotmail.com>2022-11-11 22:49:36 +0100
commit59573bf5b9afb2157c73b18dd189a0927dafee52 (patch)
treea51943c3be8f4430a314560e5afba145013b28a3 /Tests/RunCMake/CommandLine
parent23f3dd9f7c87bbf02685f388cb3913a8878e4f3b (diff)
downloadcmake-59573bf5b9afb2157c73b18dd189a0927dafee52.tar.gz
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/CommandLine')
-rw-r--r--Tests/RunCMake/CommandLine/C_buildsrcdir/initial-cache.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/C_buildsrcdir/initial-cache.txt b/Tests/RunCMake/CommandLine/C_buildsrcdir/initial-cache.txt
index adc125ba20..ce1cce361a 100644
--- a/Tests/RunCMake/CommandLine/C_buildsrcdir/initial-cache.txt
+++ b/Tests/RunCMake/CommandLine/C_buildsrcdir/initial-cache.txt
@@ -1,3 +1,5 @@
+set(CMAKE_MINIMUM_REQUIRED_VERSION "" CACHE STRING "")
+
# Used to verify that the values match what is passed via -S and -B, and are retained in cache.
set(INITIAL_SOURCE_DIR "${CMAKE_SOURCE_DIR}" CACHE PATH "defined in initial.cmake")
set(INITIAL_BINARY_DIR "${CMAKE_BINARY_DIR}" CACHE PATH "defined in initial.cmake")