mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fix FindSQLite3.cmake
This commit is contained in:
parent
89ee5944b4
commit
040bec2258
|
@ -29,17 +29,12 @@ if(NOT SQLite3_FOUND)
|
|||
find_package_handle_standard_args(SQLite3 DEFAULT_MSG SQLite3_INCLUDEDIR)
|
||||
|
||||
mark_as_advanced(SQLite3_INCLUDEDIR SQLite3_LIBRARY)
|
||||
|
||||
if(SQLite3_FOUND)
|
||||
set(SQLite3_INCLUDE_DIRS ${SQLite3_INCLUDEDIR})
|
||||
if(SQLite3_LIBRARY)
|
||||
set(SQLite3_LIBRARIES ${SQLite3_LIBRARY})
|
||||
else()
|
||||
set(SQLite3_LIBRARIES)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(SQLite3_FOUND)
|
||||
is_bundled(SQLite3_BUNDLED "${SQLite3_LIBRARY}")
|
||||
if(SQLite3_LIBRARY)
|
||||
set(SQLite3_LIBRARIES ${SQLite3_LIBRARY})
|
||||
else()
|
||||
set(SQLite3_LIBRARIES)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue