Show source version in the cmake logs

This commit is contained in:
Philippe Teuwen 2021-09-05 01:29:55 +02:00
commit 5ce9450c3a
2 changed files with 12 additions and 0 deletions

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)