Tests: Factor out RunCMake.project helper macro into module

This commit is contained in:
Brad King
2019-07-11 10:56:38 -04:00
parent b1f387a7ea
commit 5f84669806
2 changed files with 7 additions and 6 deletions

View File

@@ -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)

View 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()