summaryrefslogtreecommitdiff
path: root/src/php/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/CMakeLists.txt')
-rw-r--r--src/php/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/php/CMakeLists.txt b/src/php/CMakeLists.txt
index f21e8d2..fb10d58 100644
--- a/src/php/CMakeLists.txt
+++ b/src/php/CMakeLists.txt
@@ -31,7 +31,9 @@ if (PHP4_FOUND)
configure_file(test.php ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
- set(PHP_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/phpbindings" CACHE STRING "Install directory for php bindings.")
+ if (NOT PHP_INSTALL_DIR)
+ set(PHP_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/phpbindings" CACHE STRING "Install directory for php bindings.")
+ endif()
install(TARGETS phpbindings LIBRARY DESTINATION ${PHP_INSTALL_DIR})