Skip to content

Commit

Permalink
build: populating TEGO_VERSION define from RICOCHET_REFRESH_VERSION v…
Browse files Browse the repository at this point in the history
…ar if present
  • Loading branch information
Richard Pospesel committed Mar 21, 2022
1 parent bb563da commit 9e55f3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ricochet-refresh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ qt_add_resources(
icons/icons.qrc
ui/qml.qrc)

if (DEFINED ENV{RICOCHET_REFRESH_VERSION})
add_compile_definitions(TEGO_VERSION=$ENV{RICOCHET_REFRESH_VERSION})
endif ()

target_sources(ricochet-refresh PRIVATE main.cpp ${RICOCHET_QML_RES} ${RICOCHET_QM_RES})
if (STATIC_QT)
include(qmake_static)
Expand Down

0 comments on commit 9e55f3c

Please sign in to comment.