1
0
mirror of https://github.com/kakwa/uts-server synced 2024-11-13 04:58:55 +01:00
This commit is contained in:
kakwa 2016-09-14 20:16:37 +02:00
commit 3461d11f94
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,8 @@ set(VERSION 0.1.0)
option(DEBUG "compile with debug symbol" OFF)
option(BUNDLE_CIVETWEB "bundle civetweb with uts-server" OFF)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700")
if(DEBUG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g")
set(CMAKE_BUILD_TYPE Debug)
@ -19,7 +21,7 @@ add_custom_target(tag
git push origin ${VERSION}
)
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -DUTS_VERSION='\"${VERSION}\"'")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUTS_VERSION='\"${VERSION}\"'")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

View File

@ -7,6 +7,8 @@
#include <argp.h>
#include <sys/syslog.h>
#include <libgen.h>
#include <limits.h>
#include <linux/limits.h>
#include "http.h"
const char *argp_program_version = UTS_VERSION;