File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,13 @@ if(TARGET SQLite::SQLite3)
8787
8888 check_symbol_exists(sqlite3_close_v2 sqlite3.h HAVE_SQLITE3_CLOSE_V2)
8989 check_symbol_exists(sqlite3_column_table_name sqlite3.h HAVE_SQLITE3_COLUMN_TABLE_NAME)
90- check_symbol_exists(sqlite3_load_extension sqlite3.h HAVE_SQLITE3_LOAD_EXTENSION)
9190
92- if (NOT HAVE_SQLITE3_LOAD_EXTENSION)
91+ check_symbol_exists(
92+ sqlite3_load_extension
93+ sqlite3.h
94+ _PHP_HAVE_SQLITE3_LOAD_EXTENSION
95+ )
96+ if (NOT _PHP_HAVE_SQLITE3_LOAD_EXTENSION)
9397 set (PDO_SQLITE_OMIT_LOAD_EXTENSION TRUE )
9498 endif ()
9599 cmake_pop_check_state()
Original file line number Diff line number Diff line change @@ -83,9 +83,13 @@ if(TARGET SQLite::SQLite3)
8383
8484 check_symbol_exists(sqlite3_errstr sqlite3.h HAVE_SQLITE3_ERRSTR)
8585 check_symbol_exists(sqlite3_expanded_sql sqlite3.h HAVE_SQLITE3_EXPANDED_SQL)
86- check_symbol_exists(sqlite3_load_extension sqlite3.h HAVE_SQLITE3_LOAD_EXTENSION)
8786
88- if (NOT HAVE_SQLITE3_LOAD_EXTENSION)
87+ check_symbol_exists(
88+ sqlite3_load_extension
89+ sqlite3.h
90+ _PHP_HAVE_SQLITE3_LOAD_EXTENSION
91+ )
92+ if (NOT _PHP_HAVE_SQLITE3_LOAD_EXTENSION)
8993 set (SQLITE_OMIT_LOAD_EXTENSION TRUE )
9094 endif ()
9195 cmake_pop_check_state()
You can’t perform that action at this time.
0 commit comments