We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ce3624 commit 717fc45Copy full SHA for 717fc45
cmake/cmake/modules/FindPHP.cmake
@@ -848,10 +848,11 @@ if(_phpRole STREQUAL "PROJECT" AND "Development" IN_LIST PHP_FIND_COMPONENTS)
848
file(READ ${binaryDir}/config.h current)
849
endif()
850
851
- string(STRIP "${template}\n${current}" config)
852
-
853
# Finalize extension's config.h header file.
854
- file(CONFIGURE OUTPUT ${binaryDir}/config.h CONTENT "${config}\n")
+ if(NOT current MATCHES "(#undef|#define) ${macro}")
+ string(STRIP "${template}\n${current}" config)
+ file(CONFIGURE OUTPUT ${binaryDir}/config.h CONTENT "${config}\n")
855
+ endif()
856
endfunction()
857
858
0 commit comments