Support CMake 4.0 SQLite target
This commit is contained in:
1 file changed
+6
@@ -148,6 +148,12 @@ endif()
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
# FindSQLite3 exposed only SQLite::SQLite3 before CMake 4.3. Keep the
|
||||
# component's preferred target name available across the supported CMake 4.x
|
||||
# range; an alias created inside sibling VoidLibrary is not visible here.
|
||||
if(NOT TARGET SQLite3::SQLite3 AND TARGET SQLite::SQLite3)
|
||||
add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3)
|
||||
endif()
|
||||
find_package(TBB REQUIRED)
|
||||
|
||||
target_link_libraries(EchoionCore
|
||||
|
||||
Reference in new issue
Block a user