Fix FindSQLite3.cmake

This commit is contained in:
Zwelf 2020-07-09 23:50:40 +02:00
parent 89ee5944b4
commit 040bec2258

View file

@ -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()