mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-31 20:29:36 +08:00
fix CMakeLists.txt
This commit is contained in:
parent
e5ecd33ec4
commit
82ba4f7d1b
@ -5,6 +5,17 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
|
execute_process(COMMAND git rev-parse HEAD
|
||||||
|
OUTPUT_VARIABLE GIT_VER
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
ERROR_QUIET)
|
||||||
|
if (GIT_VER STREQUAL "")
|
||||||
|
set(GIT_VER "unknown")
|
||||||
|
endif()
|
||||||
|
file(WRITE git_version.h "const char *gitversion = \"${GIT_VER}\";")
|
||||||
|
|
||||||
|
file(REMOVE makefile)
|
||||||
|
|
||||||
set(SOURCE_FILES
|
set(SOURCE_FILES
|
||||||
main.cpp
|
main.cpp
|
||||||
lib/md5.cpp
|
lib/md5.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user