svn commit: r1920658 - /apr/apr-util/branches/1.7.x/CMakeLists.txt

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: ivan
Date: Sat Sep 14 19:05:27 2024
New Revision: 1920658

URL: http://svn.apache.org/viewvc?rev=1920658&view=rev
Log:
CMake: Use imported targets for SQLite3.

Modified:
    apr/apr-util/branches/1.7.x/CMakeLists.txt

Modified: apr/apr-util/branches/1.7.x/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/CMakeLists.txt?rev=1920658&r1=1920657&r2=1920658&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/CMakeLists.txt (original)
+++ apr/apr-util/branches/1.7.x/CMakeLists.txt Sat Sep 14 19:05:27 2024
@@ -287,7 +287,7 @@ IF(NOT APU_DSO_BUILD AND APU_HAVE_SQLITE
   LIST(APPEND dbd_drivers sqlite3)
 
   LIST(APPEND APU_EXTRA_SOURCES dbd/apr_dbd_sqlite3.c)
-  LIST(APPEND APU_EXTRA_LIBRARIES ${SQLite3_LIBRARIES})
+  LIST(APPEND APU_EXTRA_LIBRARIES SQLite::SQLite3)
 ENDIF()
 
 ADD_LIBRARY(libaprutil-1 ${APR_SOURCES} ${APU_EXTRA_SOURCES} ${APR_PUBLIC_HEADERS_GENERATED})
@@ -368,10 +368,9 @@ IF(APU_DSO_BUILD AND APU_HAVE_SQLITE3)
   LIST(APPEND install_targets apr_dbd_sqlite3-1)
   LIST(APPEND install_bin_pdb $<TARGET_PDB_FILE:apr_dbd_sqlite3-1>)
   LIST(APPEND dbd_drivers sqlite3)
-  TARGET_INCLUDE_DIRECTORIES(apr_dbd_sqlite3-1
-                             PRIVATE "${SQLite3_INCLUDE_DIRS}")
+  TARGET_INCLUDE_DIRECTORIES(apr_dbd_sqlite3-1)
   TARGET_LINK_LIBRARIES(apr_dbd_sqlite3-1
-                        PRIVATE libaprutil-1 apr::libapr-1 ${SQLite3_LIBRARIES})
+                        PRIVATE libaprutil-1 apr::libapr-1 SQLite::SQLite3)
   TARGET_COMPILE_DEFINITIONS(apr_dbd_sqlite3-1
                              PRIVATE "DLL_NAME=apr_dbd_sqlite3-1")
 ENDIF()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.