Skip to content
Permalink
Browse files
Fix variables set by find_package(PHP).
  • Loading branch information
sebastic committed Mar 30, 2019
1 parent e5ad2f1 commit c6d5851fa8bbed02a5545ec199d3452c07bec05b
Showing 1 changed file with 6 additions and 6 deletions.
@@ -22,17 +22,17 @@ add_definitions(-DZTS=1)
endif(WITH_THREAD_SAFETY)
endif(WIN32)

include_directories(${PHP_FOUND_INCLUDE_PATH})
include_directories(${PHP_FOUND_INCLUDE_PATH}/main)
include_directories(${PHP_FOUND_INCLUDE_PATH}/Zend)
include_directories(${PHP_FOUND_INCLUDE_PATH}/TSRM)
include_directories(${PHP_INCLUDE_PATH})
include_directories(${PHP_INCLUDE_PATH}/main)
include_directories(${PHP_INCLUDE_PATH}/Zend)
include_directories(${PHP_INCLUDE_PATH}/TSRM)

include_directories(${PROJECT_SOURCE_DIR}/mapscript/swiginc)
include_directories(${PROJECT_SOURCE_DIR}/mapscript/)
include_directories(${PROJECT_SOURCE_DIR}/mapscript/phpng)

if(WIN32)
include_directories(${PHP_FOUND_INCLUDE_PATH}/win32)
include_directories(${PHP_INCLUDE_PATH}/win32)
endif(WIN32)

IF(PHP_VERSION LESS 5)
@@ -56,4 +56,4 @@ target_link_libraries(php_mapscriptng mapserver)
set_target_properties(${SWIG_MODULE_mapscript_REAL_NAME} PROPERTIES PREFIX "")
if(NOT WIN32)
install(TARGETS php_mapscriptng DESTINATION ${PHP_EXTENSION_DIR})
endif()
endif()

0 comments on commit c6d5851

Please sign in to comment.