diff --git a/cmake/FindSQLite3.cmake b/cmake/FindSQLite3.cmake index 1c46c3843..dc251d576 100644 --- a/cmake/FindSQLite3.cmake +++ b/cmake/FindSQLite3.cmake @@ -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()