File tree Expand file tree Collapse file tree 7 files changed +60
-6
lines changed Expand file tree Collapse file tree 7 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 1+ #[=============================================================================[ 
2+ # FindBZip2 
3+ 
4+ This module overrides the upstream CMake `FindBZip2` module with few 
5+ customizations: 
6+ 
7+ * Added BZip2_VERSION result variable for CMake < 4.2. 
8+ 
9+ See: https://cmake.org/cmake/help/latest/module/FindBZip2.html 
10+ #]=============================================================================] 
11+ 
12+ # Find package with upstream CMake find module. Absolute path prevents the 
13+ # maximum nesting/recursion depth error on some systems, like macOS. 
14+ include (${CMAKE_ROOT} /Modules/FindBZip2.cmake)
15+ 
16+ if (CMAKE_VERSION  VERSION_LESS  4.2)
17+   set (BZip2_VERSION "${BZIP2_VERSION} " )
18+ endif ()
Original file line number Diff line number Diff line change 1+ #[=============================================================================[ 
2+ # FindLibXml2 
3+ 
4+ This module overrides the upstream CMake `FindLibXml2` module with few 
5+ customizations: 
6+ 
7+ * Added LibXml2_VERSION result variable for CMake < 4.2. 
8+ 
9+ See: https://cmake.org/cmake/help/latest/module/FindLibXml2.html 
10+ #]=============================================================================] 
11+ 
12+ # Find package with upstream CMake find module. Absolute path prevents the 
13+ # maximum nesting/recursion depth error on some systems, like macOS. 
14+ include (${CMAKE_ROOT} /Modules/FindLibXml2.cmake)
15+ 
16+ if (CMAKE_VERSION  VERSION_LESS  4.2)
17+   set (LibXml2_VERSION "${LIBXML2_VERSION_STRING} " )
18+ endif ()
Original file line number Diff line number Diff line change 1+ #[=============================================================================[ 
2+ # FindPostgreSQL 
3+ 
4+ This module overrides the upstream CMake `FindPostgreSQL` module with few 
5+ customizations: 
6+ 
7+ * Added PostgreSQL_VERSION result variable for CMake < 4.2. 
8+ 
9+ See: https://cmake.org/cmake/help/latest/module/FindPostgreSQL.html 
10+ #]=============================================================================] 
11+ 
12+ # Find package with upstream CMake find module. Absolute path prevents the 
13+ # maximum nesting/recursion depth error on some systems, like macOS. 
14+ include (${CMAKE_ROOT} /Modules/FindPostgreSQL.cmake)
15+ 
16+ if (CMAKE_VERSION  VERSION_LESS  4.2)
17+   set (PostgreSQL_VERSION "${PostgreSQL_VERSION_STRING} " )
18+ endif ()
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ if(TARGET BZip2::BZip2)
9090    # the FILE definition. BZ2_bzerror() is available as of 1.0.0. 
9191    block()
9292      set (headers "bzlib.h" )
93-       if (BZIP2_VERSION  VERSION_LESS  1.0.2)
93+       if (BZip2_VERSION  VERSION_LESS  1.0.2)
9494        list (PREPEND headers "stdio.h" )
9595      endif ()
9696      check_symbol_exists(BZ2_bzerror "${headers} "  PHP_EXT_BZ2_SANITY_CHECK)
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ set_package_properties(
7575)
7676
7777# HAVE_WIN32_THREADS is not needed on newer libxml2 versions anymore. 
78- if (LIBXML2_VERSION_STRING  VERSION_LESS  2.10)
78+ if (LibXml2_VERSION  VERSION_LESS  2.10)
7979  target_compile_definitions (
8080    php_ext_libxml
8181    PRIVATE 
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ if(TARGET PostgreSQL::PostgreSQL)
9797    endif ()
9898
9999    # Available since PostgreSQL library version 12. 
100-     if (PostgreSQL_VERSION_STRING  VERSION_GREATER_EQUAL  12)
100+     if (PostgreSQL_VERSION  VERSION_GREATER_EQUAL  12)
101101      check_symbol_exists(
102102        PQresultMemorySize
103103        libpq-fe.h
@@ -106,7 +106,7 @@ if(TARGET PostgreSQL::PostgreSQL)
106106    endif ()
107107
108108    # Available since PostgreSQL library version 17. 
109-     if (PostgreSQL_VERSION_STRING  VERSION_GREATER_EQUAL  17)
109+     if (PostgreSQL_VERSION  VERSION_GREATER_EQUAL  17)
110110      # Indicates the presence of PQclosePrepared, PQclosePortal, etc. 
111111      check_symbol_exists(
112112        LIBPQ_HAS_CLOSE_PREPARED
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if(TARGET PostgreSQL::PostgreSQL)
101101    endif ()
102102
103103    # Available since PostgreSQL library version 12. 
104-     if (PostgreSQL_VERSION_STRING  VERSION_GREATER_EQUAL  12)
104+     if (PostgreSQL_VERSION  VERSION_GREATER_EQUAL  12)
105105      check_symbol_exists(
106106        PQresultMemorySize
107107        libpq-fe.h
@@ -115,7 +115,7 @@ if(TARGET PostgreSQL::PostgreSQL)
115115    endif ()
116116
117117    # Available since PostgreSQL library version 17. 
118-     if (PostgreSQL_VERSION_STRING  VERSION_GREATER_EQUAL  17)
118+     if (PostgreSQL_VERSION  VERSION_GREATER_EQUAL  17)
119119      # Indicates the presence of PQchangePassword. 
120120      check_symbol_exists(
121121        LIBPQ_HAS_CHANGE_PASSWORD
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments