mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Tests: Factor out RunCMake.project helper macro into module
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
macro(print_versions name)
|
||||
foreach(v "" _MAJOR _MINOR _PATCH _TWEAK)
|
||||
message(STATUS "PROJECT_VERSION${v}='${PROJECT_VERSION${v}}'")
|
||||
message(STATUS "${name}_VERSION${v}='${${name}_VERSION${v}}'")
|
||||
endforeach()
|
||||
endmacro()
|
||||
include(PrintVersions.cmake)
|
||||
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
|
||||
|
||||
6
Tests/RunCMake/project/PrintVersions.cmake
Normal file
6
Tests/RunCMake/project/PrintVersions.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
macro(print_versions name)
|
||||
foreach(v "" _MAJOR _MINOR _PATCH _TWEAK)
|
||||
message(STATUS "PROJECT_VERSION${v}='${PROJECT_VERSION${v}}'")
|
||||
message(STATUS "${name}_VERSION${v}='${${name}_VERSION${v}}'")
|
||||
endforeach()
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user