mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:06:50 +00:00
Fixed bugs in CMakelists.txt and Makefile
This commit is contained in:
parent
d2b89fb7fc
commit
29ff2db5d3
@ -19,11 +19,10 @@ set(SRVDIR /usr/lib/systemd/system)
|
|||||||
include_directories(${CMAKE_SOURCE_DIR}/mxml)
|
include_directories(${CMAKE_SOURCE_DIR}/mxml)
|
||||||
|
|
||||||
# default compiler flags
|
# default compiler flags
|
||||||
if (!MSVC)
|
|
||||||
add_compile_options(-W -Wall -Wno-deprecated-declarations)
|
|
||||||
endif()
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/D_CRT_SECURE_WARNINGS /wd4005 /wd4244 /wd4267 /wd4996 /nologo)
|
add_compile_options(/D_CRT_SECURE_WARNINGS /wd4005 /wd4244 /wd4267 /wd4996 /nologo)
|
||||||
|
else()
|
||||||
|
add_compile_options(-W -Wall -Wno-deprecated-declarations)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# find git
|
# find git
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -37,7 +37,7 @@ USE_PAM = 0
|
|||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# Default compilation flags unless stated otherwise.
|
# Default compilation flags unless stated otherwise.
|
||||||
CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-results -Imxml
|
CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
EXECS = elog elogd elconv
|
EXECS = elog elogd elconv
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user