Browse Source

* check is pcre.h available in cmake

master
Alex 'AdUser' Z 8 years ago
parent
commit
8d5ba0ce79
  1. 7
      CMakeLists.txt

7
CMakeLists.txt

@ -4,6 +4,7 @@ set(VERSION 0.3)
project(${CNAME} C)
cmake_minimum_required(VERSION 2.6)
include(CheckIncludeFiles)
include(CTest)
option(WITH_CLIENT "Simple client for configuring daemon" ON)
@ -37,6 +38,12 @@ if (WITH_HARDENING)
add_definitions("-D_FORTIFY_SOURCE=2")
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 "- CFLAGS : ${CMAKE_C_FLAGS}")
message(STATUS "Paths:")

Loading…
Cancel
Save