From a693a3b085d529be6066e440500e659d53d90cfc Mon Sep 17 00:00:00 2001 From: Jeff McKenna Date: Tue, 9 Jul 2024 16:57:15 -0300 Subject: [PATCH] handle PHP out of source builds --- src/mapscript/phpng/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mapscript/phpng/CMakeLists.txt b/src/mapscript/phpng/CMakeLists.txt index 7f95b8826b..44407440bd 100644 --- a/src/mapscript/phpng/CMakeLists.txt +++ b/src/mapscript/phpng/CMakeLists.txt @@ -30,6 +30,7 @@ message(STATUS "PHP Include Path: ${PHP_INCLUDE_PATH}") include_directories(${PROJECT_SOURCE_DIR}/src/mapscript/swiginc) include_directories(${PROJECT_SOURCE_DIR}/src/mapscript/) include_directories(${PROJECT_SOURCE_DIR}/src/mapscript/phpng) +include_directories(${PROJECT_BINARY_DIR}/src/mapscript/) include_directories(${CMAKE_CURRENT_BINARY_DIR}) # make sure mapscriptPHP7_wrap.c is found if(WIN32)