File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 14
14
#
15
15
###############################################################################
16
16
17
+ find_package (PkgConfig QUIET )
18
+ pkg_check_modules(PC_SQLite3 QUIET sqlite3)
19
+
17
20
set (SQLITE3_INCLUDE_SEARCH_PATHS
21
+ ${PC_SQLite3_INCLUDE_DIRS}
18
22
/usr/include
19
23
/usr/local/include
20
24
$ENV{LIB_DIR} /include
@@ -26,10 +30,12 @@ set(SQLITE3_INCLUDE_SEARCH_PATHS
26
30
$ENV{SystemDrive} /SQLite3/*/include
27
31
$ENV{SQLITE_ROOT} /include
28
32
${SQLITE_ROOT_DIR} /include
29
- $ENV{OSGEO4W_ROOT} /include )
33
+ $ENV{OSGEO4W_ROOT} /include
34
+ )
30
35
31
36
32
37
set (SQLITE3_LIB_SEARCH_PATHS
38
+ ${PC_SQLite3_LIBRARY_DIRS}
33
39
/usr/lib
34
40
/usr/local/lib
35
41
$ENV{LIB_DIR} /lib
@@ -39,7 +45,8 @@ set(SQLITE3_LIB_SEARCH_PATHS
39
45
$ENV{SystemDrive} /SQLite3/*/lib
40
46
$ENV{SQLITE_ROOT} /lib
41
47
${SQLITE_ROOT_DIR} /lib
42
- $ENV{OSGEO4W_ROOT} /lib)
48
+ $ENV{OSGEO4W_ROOT} /lib
49
+ )
43
50
44
51
if (APPLE )
45
52
# on macOS, we try hard to prefer aftermarket sqlite3 installations, as the system sqlite3
You can’t perform that action at this time.
0 commit comments