File tree Expand file tree Collapse file tree 6 files changed +13
-3
lines changed Expand file tree Collapse file tree 6 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ include_guard(GLOBAL)
1010# Add paths where include() and find_package() look for modules.
1111list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} /modules)
1212
13- # Automatically include current source or build tree for the current target.
14- set (CMAKE_INCLUDE_CURRENT_DIR ON )
15-
1613# Put the source or build tree include directories before other includes.
1714set (CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON )
1815
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ target_compile_definitions(
113113 HAVE_INTTYPES_H=1
114114)
115115
116+ target_include_directories (php_ext_fileinfo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
117+
116118set_property (
117119 SOURCE libmagic/apprentice.c
118120 APPEND
Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ target_sources(
166166 uchar/uchar.stub.php
167167)
168168
169+ target_include_directories (php_ext_intl PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
170+
169171php_check_compiler_flag(C -Wno-write-strings PHP_HAS_WNO_WRITE_STRINGS_C)
170172if (PHP_HAS_WNO_WRITE_STRINGS_C)
171173 target_compile_options (
Original file line number Diff line number Diff line change @@ -153,6 +153,13 @@ if(PHP_EXT_OPCACHE_JIT)
153153 endif ()
154154endif ()
155155
156+ target_include_directories (
157+ php_ext_opcache
158+ PRIVATE
159+ ${CMAKE_CURRENT_SOURCE_DIR}
160+ ${CMAKE_CURRENT_BINARY_DIR}
161+ )
162+
156163if (PHP_EXT_OPCACHE_JIT)
157164 # Find out which ABI to use.
158165 if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64|AMD64|ARM64)$" )
Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ target_sources(
225225target_include_directories (
226226 php_sapi_fpm
227227 PRIVATE
228+ ${CMAKE_CURRENT_SOURCE_DIR}
228229 ${CMAKE_CURRENT_SOURCE_DIR} /fpm
229230)
230231
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ target_sources(
6565 ${CMAKE_CURRENT_BINARY_DIR} /wsyslog.h
6666)
6767
68+ target_include_directories (php_windows PRIVATE ${CMAKE_CURRENT_BINARY_DIR} )
6869target_link_libraries (php_windows PRIVATE PHP::config)
6970
7071################################################################################
You can’t perform that action at this time.
0 commit comments