Fix compiling journal lib without sqlite
This commit is contained in:
parent
d5abbb4762
commit
1d8ba361fc
2 changed files with 10 additions and 1 deletions
|
|
@ -7,4 +7,8 @@ endif()
|
||||||
|
|
||||||
psemek_add_library(psemek-journal ${PSEMEK_JOURNAL_HEADERS} ${PSEMEK_JOURNAL_SOURCES})
|
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_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()
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,11 @@ namespace psemek::journal
|
||||||
void log_event(event const &)
|
void log_event(event const &)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
std::vector<std::pair<event_metadata const *, event_data>> select(std::string const &)
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
bool enabled = true;
|
bool enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue