diff options
author | friendlyanon <friendlyanon_@hotmail.com> | 2022-11-11 16:15:30 +0100 |
---|---|---|
committer | friendlyanon <friendlyanon_@hotmail.com> | 2022-11-11 22:49:36 +0100 |
commit | 59573bf5b9afb2157c73b18dd189a0927dafee52 (patch) | |
tree | a51943c3be8f4430a314560e5afba145013b28a3 /Tests/RunCMake/CommandLine | |
parent | 23f3dd9f7c87bbf02685f388cb3913a8878e4f3b (diff) | |
download | cmake-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.txt | 2 |
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") |