Files
wlan-cloud-lib-poco/cmake/FindApache2.cmake
Joerg-Christian Boehme a4a0052cc1 Merge cmake changes from poco-1.9.1 (#2505)
* Take changes from 1.9.1 for check cxxyy compiler support

* Get change from 1.9.1 branch. _DEBUG is set on Foundation library

* CMake improve find third-party libraries (#2478)

* Add additional settings for thirdparty paths and fix windows build

* Fix postgresql build on AppVeyor

* Add additional path for odbc windows kits

* Add test_compiler cpp

* Take changes from 1.9.1 for find MySQL modul

* Take changes from 1.9.1 for find ODBC modul

* Take changes from 1.9.1 for find PCRE modul

* Take changes from 1.9.1 for find PostgreSQL modul

* Take changes from 1.9.1 for find Apache2 modul

* Take cmake SQL changes from 1.9.1

* Take changes from 1.9.1 for MySQL cmake

* Take changes from 1.9.1 for ODBC cmake

* Take changes from 1.9.1 for PostgreSQL cmake

* Fix compile with c++11 standard

* Rename DISABLE_CPP14 to POCO_DISABLE_CPP14

* Fix cmake compile features

* Remove POCO_ENABLE_CPP11

* Enable compile 64bit in cmake for AppVeyor build

* Remove copy data directory for encoding test. It doesnt exists anymore

* Move __LCC__ define to MySQL
2018-10-18 07:11:38 +02:00

50 lines
1.1 KiB
CMake

# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#.rst:
# FindApache2
# -------
#
# Find Apache2 Runtime
#
# This will define the following variables::
#
# APACHE2_FOUND - True if the system has the Apache2 library
# APACHE2_INCLUDE_DIRS - where to find httpd.h, etc.
#
# Hints:
# Set ``APACHE2_ROOT_DIR`` to the root directory of an Apache installation.
#
include(FindPackageHandleStandardArgs)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_APACHE2 QUIET apache2)
find_path(APACHE2_INCLUDE_DIR httpd.h
HINTS
${APACHE2_ROOT_DIR}/include/apache2
${APACHE2_ROOT_INCLUDE_DIRS}
PATHS
${PC_APACHE2_INCLUDE_DIRS}
/usr/local/include/apache2
/usr/include/apache2
)
set(APACHE2_VERSION ${PC_APACHE2_VERSION})
find_package_handle_standard_args(Apache2
FOUND_VAR APACHE2_FOUND
REQUIRED_VARS
APACHE2_INCLUDE_DIR
VERSION_VAR APACHE2_VERSION
)
if(APACHE2_FOUND)
set(APACHE2_INCLUDE_DIRS ${APACHE2_INCLUDE_DIR})
set(APACHE2_DEFINITIONS ${PC_APACHE2_CFLAGS_OTHER})
endif()
mark_as_advanced(
APACHE2_INCLUDE_DIR
)