logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit a4aa1ec35e5bca80c682d124eaa194b2f8bcd532
parent 0f703a458de82aed0173e17a0277885b0edd4c72
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 18 Oct 2021 19:25:47 +0200

Use CMAKE_C_STANDARD instead of hardcoding compiler flags.

Diffstat:
MCMakeLists.txt | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -4,7 +4,7 @@ # https://www.logswan.org # # Created: 2015-05-31 -# Last Updated: 2021-04-04 +# Last Updated: 2021-10-18 # # Logswan is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -12,7 +12,11 @@ # SPDX-License-Identifier: BSD-2-Clause # -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.1) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_C_EXTENSIONS OFF) project(logswan C) @@ -69,7 +73,7 @@ set(GEOIP2DIR ${CMAKE_INSTALL_PREFIX}/share/dbip CACHE PATH "Path to GeoIP2 databases") set(GEOIP2DB "dbip-country-lite.mmdb" CACHE PATH "GeoIP2 database file") -add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c11 -pedantic) +add_definitions(-D_GNU_SOURCE -Wall -Wextra -pedantic) add_definitions(-DGEOIP2DIR="${GEOIP2DIR}/") add_definitions(-DGEOIP2DB="${GEOIP2DB}") add_executable(logswan ${SRC} ${DEPS})