Commit 241c6bce authored by LordTermor's avatar LordTermor

Fixed sources version inject

parent aeee7c5a
......@@ -5,9 +5,9 @@ if(NOT DEFINED VERSION)
execute_process(COMMAND git --git-dir ./.git --work-tree ./ describe --always --tags
OUTPUT_VARIABLE RES
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP ${RES} RES)
add_definitions(-DVERSION=\"${RES}\")
string(STRIP ${RES} VERSION)
endif(NOT DEFINED VERSION)
add_definitions(-DVERSION=\"${VERSION}\")
add_subdirectory(app)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment