mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-10 03:33:08 +01:00
ef688babc2
* fix(SQLParser): move to Data dir; add extradirs, remove vs 140,150 build scripts generation * fix(ActiveRecord): Makefile #4453 * fix(Data): Make SQLParser internal * fix(build): ODBC Makefile and Data libs CmakeLists #4453 * fix(build): Data libs CMakeLists #4453 * fix(build): regenerate VS projects #4453 * fix(CppUnit): remove Foundation dependency * fix(SQLParser): remove leftover unnecessary includes * fix(SQLParser): remove fwd header #4453 * fix(PocoDoc): remove SQLParser from include list * fix(mkrelease): remove 140,150 vs projects * fix(SQLParser): Disable SQL parsing by default #4462 * fix(test): Disable SQL parsing by default #4462 * Fix detection of odbc and apache2 for Fedora (#4461) * Fixed transaction handling in MySQL test when SQL parser is switched off * chore(ParallelSocketAcceptor): remove unnecessary include and using from header --------- Co-authored-by: Matej Kenda <matejken@gmail.com> Co-authored-by: topazus <77263945+topazus@users.noreply.github.com> Co-authored-by: Friedrich Wilckens <frwilckens@gmail.com>
51 lines
1.1 KiB
CMake
51 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/include/httpd
|
|
/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
|
|
)
|