|
|
@ -4,7 +4,6 @@ set(VERSION 0.3) |
|
|
|
project(${CNAME} C) |
|
|
|
project(${CNAME} C) |
|
|
|
cmake_minimum_required(VERSION 2.6) |
|
|
|
cmake_minimum_required(VERSION 2.6) |
|
|
|
|
|
|
|
|
|
|
|
include(CheckIncludeFiles) |
|
|
|
|
|
|
|
include(CTest) |
|
|
|
include(CTest) |
|
|
|
|
|
|
|
|
|
|
|
option(WITH_CLIENT "Simple client for configuring daemon" ON) |
|
|
|
option(WITH_CLIENT "Simple client for configuring daemon" ON) |
|
|
@ -38,12 +37,6 @@ if (WITH_HARDENING) |
|
|
|
add_definitions("-D_FORTIFY_SOURCE=2") |
|
|
|
add_definitions("-D_FORTIFY_SOURCE=2") |
|
|
|
endif () |
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
check_include_files("pcre.h" HAS_PCRE) |
|
|
|
|
|
|
|
if (${WITH_PCRE} STREQUAL "ON" AND NOT ${HAS_PCRE}) |
|
|
|
|
|
|
|
set(WITH_PCRE "OFF") |
|
|
|
|
|
|
|
message(WARNING "pcre headers not found, support disabled") |
|
|
|
|
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message(STATUS "Compiler : ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})") |
|
|
|
message(STATUS "Compiler : ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})") |
|
|
|
message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}") |
|
|
|
message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}") |
|
|
|
message(STATUS "Paths:") |
|
|
|
message(STATUS "Paths:") |
|
|
|