From 1ac456aa9d444f824e54c4f49ffa1ec96f6aa34e Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 21 Mar 2021 20:27:24 +0200 Subject: [PATCH] Update CMakeLists.txt --- module/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index afa2c527..63e0592b 100644 --- a/module/CMakeLists.txt +++ b/module/CMakeLists.txt @@ -131,6 +131,10 @@ target_link_libraries(SqModule Squirrel FmtLib SimpleINI TinyDir ConcurrentQueue target_link_libraries(SqModule Poco::Foundation Poco::Crypto Poco::Data Poco::Net Poco::JSON Poco::XML) # Does POCO have SQLite support? if(ENABLE_DATA_SQLITE) + if(NOT POCO_UNBUNDLED) + # We need to make sqlite3.h available for include. Ugly but POCO doesn't expose this directly. + target_include_directories(SqModule PRIVATE "${PROJECT_SOURCE_DIR}/vendor/POCO/Data/SQLite/src") + endif() # Link the libraries target_link_libraries(SqModule Poco::DataSQLite) # Inform the plug-in that it can make use of this library