summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-04-20 22:54:57 -0500
committerDarrell Anderson <[email protected]>2012-04-20 22:54:57 -0500
commit220261c98b3e497b8c34666d5ac22d33ba36da9f (patch)
tree091a4a4d0cffd9d15ebf0ba802444db3b004429b /ConfigureChecks.cmake
parent5cba979a6ed56eae45bdcf3d17276804c6fc372e (diff)
downloadtdesvn-220261c98b3e497b8c34666d5ac22d33ba36da9f.tar.gz
tdesvn-220261c98b3e497b8c34666d5ac22d33ba36da9f.zip
Fix failure to correctly detect Apache Portable Runtime (APR).
This resolves bug report 916. Thanks to David C. Rankin.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 287113c..c682668 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -119,6 +119,12 @@ IF (UNIX)
endif(NOT APU_CONFIG)
EXEC_PROGRAM(${APR_CONFIG} ARGS "--includedir" OUTPUT_VARIABLE APR_INCLUDE_DIR_INT)
+
+ pkg_search_module( APR apr-1 )
+ if( NOT APR_FOUND )
+ tde_message_fatal( "apr-1 is required, but was not found on your system" )
+ endif( )
+
EXEC_PROGRAM(${APU_CONFIG} ARGS "--includedir" OUTPUT_VARIABLE APU_INCLUDE_DIR_INT)
SET(APR_INCLUDE_DIR "${APR_INCLUDE_DIR_INT}" CACHE INTERNAL "")
SET(APU_INCLUDE_DIR "${APU_INCLUDE_DIR_INT}" CACHE INTERNAL "")