mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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