mirror of
https://github.com/kakwa/uts-server
synced 2025-01-10 05:34:29 +01:00
adding a DEBUG option in cmake to compile wth debug flags
This commit is contained in:
parent
c8f30485fe
commit
f78c039203
@ -3,6 +3,13 @@ project (uts-server)
|
|||||||
|
|
||||||
set(VERSION 0.1.0)
|
set(VERSION 0.1.0)
|
||||||
|
|
||||||
|
option(DEBUG "compile with debug symbol" OFF)
|
||||||
|
if(DEBUG)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g")
|
||||||
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
|
endif(DEBUG)
|
||||||
|
|
||||||
|
|
||||||
add_custom_target(tag
|
add_custom_target(tag
|
||||||
git tag -a "${VERSION}" -m "version ${VERSION}" &&
|
git tag -a "${VERSION}" -m "version ${VERSION}" &&
|
||||||
git push origin ${VERSION}
|
git push origin ${VERSION}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user