blob: cf63e12d281085eb9b99b86e4f86a0e0bad58c36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
-DCMAKE_PROJECT_VERSION_MAJOR:STATIC=1
-DCMAKE_PROJECT_VERSION_MINOR:STATIC=2
-DCMAKE_PROJECT_VERSION_PATCH:STATIC=3
)
run_cmake(CMP0048-WARN)
unset(RunCMake_TEST_OPTIONS)
|