File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,12 @@ endif()
577577
578578include_directories (${BULLET_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} )
579579
580- find_package (SQLite3 REQUIRED )
580+ if (OPENMW_USE_SYSTEM_SQLITE3)
581+ find_package (SQLite3 REQUIRED )
582+ if (NOT TARGET SQLite3::SQLite3) # CMake < 4.3
583+ add_library (SQLite3::SQLite3 ALIAS SQLite::SQLite3 )
584+ endif ()
585+ endif ()
581586
582587add_library (components STATIC ${COMPONENT_FILES} )
583588
@@ -621,7 +626,7 @@ target_link_libraries(components
621626 RecastNavigation::Recast
622627
623628 Base64
624- SQLite ::SQLite3
629+ SQLite3 ::SQLite3
625630 smhasher
626631 ${ICU_LIBRARIES}
627632 ZLIB::ZLIB
Original file line number Diff line number Diff line change @@ -182,10 +182,8 @@ if (NOT OPENMW_USE_SYSTEM_SQLITE3)
182182 if (UNIX )
183183 target_link_libraries (sqlite3 ${CMAKE_DL_LIBS} )
184184 endif ()
185- add_library (SQLite::SQLite3 ALIAS sqlite3 )
186185
187- set (SQLite3_INCLUDE_DIR ${sqlite3_SOURCE_DIR} / PARENT_SCOPE )
188- set (SQLite3_LIBRARY sqlite3 PARENT_SCOPE )
186+ add_library (SQLite3::SQLite3 ALIAS sqlite3 )
189187endif ()
190188
191189add_subdirectory (smhasher )
You can’t perform that action at this time.
0 commit comments