Show source version in the cmake logs

This commit is contained in:
Philippe Teuwen
2021-09-05 01:30:08 +02:00
parent 0ed190936d
commit 5ce9450c3a
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -413,6 +413,12 @@ if (WHEREAMI_FOUND)
endif (WHEREAMI_FOUND)
message(STATUS "===================================================================")
execute_process(
COMMAND sh ${PM3_ROOT}/tools/mkversion.sh --short
OUTPUT_VARIABLE version_pm3
)
string(STRIP ${version_pm3} version_pm3)
message(STATUS "Version info: ${version_pm3}")
if (SKIPQT EQUAL 1)
message(STATUS "GUI support: skipped")
else (SKIPQT EQUAL 1)
+6
View File
@@ -403,6 +403,12 @@ if (WHEREAMI_FOUND)
endif (WHEREAMI_FOUND)
message(STATUS "===================================================================")
execute_process(
COMMAND sh ${PM3_ROOT}/tools/mkversion.sh --short
OUTPUT_VARIABLE version_pm3
)
string(STRIP ${version_pm3} version_pm3)
message(STATUS "Version info: ${version_pm3}")
if (SKIPQT EQUAL 1)
message(STATUS "GUI support: skipped")
else (SKIPQT EQUAL 1)