mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +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)
|
||||
|
||||
# default compiler flags
|
||||
if (!MSVC)
|
||||
add_compile_options(-W -Wall -Wno-deprecated-declarations)
|
||||
endif()
|
||||
if (MSVC)
|
||||
add_compile_options(/D_CRT_SECURE_WARNINGS /wd4005 /wd4244 /wd4267 /wd4996 /nologo)
|
||||
else()
|
||||
add_compile_options(-W -Wall -Wno-deprecated-declarations)
|
||||
endif()
|
||||
|
||||
# find git
|
||||
|
||||
2
Makefile
2
Makefile
@ -37,7 +37,7 @@ USE_PAM = 0
|
||||
#############################################################
|
||||
|
||||
# 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
|
||||
EXECS = elog elogd elconv
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user