Show source version in the cmake logs
This commit is contained in:
1 parent
0ed190936d
commit
5ce9450c3a
2 files changed
+12
No files matched your search
@@ -413,6 +413,12 @@ if (WHEREAMI_FOUND)
|
|||||||
endif (WHEREAMI_FOUND)
|
endif (WHEREAMI_FOUND)
|
||||||
|
|
||||||
message(STATUS "===================================================================")
|
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)
|
if (SKIPQT EQUAL 1)
|
||||||
message(STATUS "GUI support: skipped")
|
message(STATUS "GUI support: skipped")
|
||||||
else (SKIPQT EQUAL 1)
|
else (SKIPQT EQUAL 1)
|
||||||
|
|||||||
@@ -403,6 +403,12 @@ if (WHEREAMI_FOUND)
|
|||||||
endif (WHEREAMI_FOUND)
|
endif (WHEREAMI_FOUND)
|
||||||
|
|
||||||
message(STATUS "===================================================================")
|
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)
|
if (SKIPQT EQUAL 1)
|
||||||
message(STATUS "GUI support: skipped")
|
message(STATUS "GUI support: skipped")
|
||||||
else (SKIPQT EQUAL 1)
|
else (SKIPQT EQUAL 1)
|
||||||
|
|||||||
Reference in new issue
Block a user