summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-28 16:13:02 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-28 16:13:02 (GMT)
commit0bac4fa38808b9aa177f5a3b075e38cd41f945af (patch)
tree6b985ce02cef3f59763117559d5c31f4eb93099c
parente583a03639161c795c443a082df1c815396ab203 (diff)
downloadlibkolabxml-0bac4fa38808b9aa177f5a3b075e38cd41f945af.tar.gz
Correct finding PHP5 using PHP4, it doesn't work otherwise
-rw-r--r--src/php/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/php/CMakeLists.txt b/src/php/CMakeLists.txt
index 31ea9c6..583f7bd 100644
--- a/src/php/CMakeLists.txt
+++ b/src/php/CMakeLists.txt
@@ -19,10 +19,10 @@ if (APPLE)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flat_namespace -undefined suppress" )
endif()
-find_package(PHP)
+find_package(PHP4)
-if (PHP_FOUND)
- include_directories(${PHP_INCLUDE_PATH})
+if (PHP4_FOUND)
+ include_directories(${PHP4_INCLUDE_PATH})
add_library(phpbindings SHARED ${KOLAB_SWIG_PHP_SOURCE_FILE})
target_link_libraries(phpbindings kolabxml ${PHP_LIBRARIES})
SET_TARGET_PROPERTIES(phpbindings PROPERTIES OUTPUT_NAME "kolabformat")
@@ -42,4 +42,4 @@ if (PHP_FOUND)
${CMAKE_CURRENT_BINARY_DIR}/kolabformat.php
DESTINATION ${PHP_INSTALL_DIR}
)
-endif (PHP_FOUND)
+endif (PHP4_FOUND)