You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
368 B
13 lines
368 B
6 years ago
|
include(RunCMake)
|
||
|
|
||
|
set(RunCMake_TEST_OPTIONS
|
||
|
# 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)
|