src/php src/python

Christian Mollekopf mollekopf at kolabsys.com
Thu Jun 28 18:07:34 CEST 2012


 src/php/CMakeLists.txt    |    2 +-
 src/python/CMakeLists.txt |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5575aa8825f3bdd94efd7c030891d402e3dd0f75
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Thu Jun 28 18:07:25 2012 +0200

    php version check and don't silently fail if php/python is not found and the bindings are enabled

diff --git a/src/php/CMakeLists.txt b/src/php/CMakeLists.txt
index 57bfe39..fee4b37 100644
--- a/src/php/CMakeLists.txt
+++ b/src/php/CMakeLists.txt
@@ -20,7 +20,7 @@ if (APPLE)
     set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flat_namespace -undefined suppress" )
 endif()
 
-find_package(PHP4)
+find_package(PHP4 5.3 REQUIRED)
 
 if (PHP4_FOUND)
     include_directories(${PHP4_INCLUDE_PATH})
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 68a012a..8df25a3 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -3,7 +3,7 @@ include_directories(../)
 
 # Compile Python Bindings
 
-find_package(PythonLibs)
+find_package(PythonLibs REQUIRED)
 
 if (NOT PYTHONLIBS_FOUND)
     message("python libs not found, not building python bindings")





More information about the commits mailing list