diff --git a/libs/journal/CMakeLists.txt b/libs/journal/CMakeLists.txt index 8cca1e28..cb4e3fd9 100644 --- a/libs/journal/CMakeLists.txt +++ b/libs/journal/CMakeLists.txt @@ -7,4 +7,8 @@ endif() psemek_add_library(psemek-journal ${PSEMEK_JOURNAL_HEADERS} ${PSEMEK_JOURNAL_SOURCES}) target_include_directories(psemek-journal PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ${SQLite3_INCLUDE_DIRS}) -target_link_libraries(psemek-journal PUBLIC psemek-util psemek-log SQLite::SQLite3) +target_link_libraries(psemek-journal PUBLIC psemek-util psemek-log) + +if(PSEMEK_USE_SQLITE) + target_link_libraries(psemek-journal PUBLIC SQLite::SQLite3) +endif() diff --git a/libs/journal/source/journal.cpp b/libs/journal/source/journal.cpp index 7ced403f..82f1f4d7 100644 --- a/libs/journal/source/journal.cpp +++ b/libs/journal/source/journal.cpp @@ -147,6 +147,11 @@ namespace psemek::journal void log_event(event const &) {} + std::vector> select(std::string const &) + { + return {}; + } + bool enabled = true; };