Fixed bugs in CMakelists.txt and Makefile

This commit is contained in:
ritt 2022-02-11 14:16:55 +01:00
parent d2b89fb7fc
commit 29ff2db5d3
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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