c7be1f3
From a84744326fc00f7136545e81856d2ca445bbf1f7 Mon Sep 17 00:00:00 2001
c7be1f3
From: Scott Talbert <swt@techie.net>
c7be1f3
Date: Thu, 6 Feb 2020 15:14:56 -0500
c7be1f3
Subject: [PATCH 1/2] Set SQLite thread safe mode when building unbundled
c7be1f3
c7be1f3
---
c7be1f3
 Data/SQLite/CMakeLists.txt | 5 ++++-
c7be1f3
 1 file changed, 4 insertions(+), 1 deletion(-)
c7be1f3
c7be1f3
diff --git a/Data/SQLite/CMakeLists.txt b/Data/SQLite/CMakeLists.txt
c7be1f3
index fcce2e0d6..ee7d2a177 100644
c7be1f3
--- a/Data/SQLite/CMakeLists.txt
c7be1f3
+++ b/Data/SQLite/CMakeLists.txt
c7be1f3
@@ -44,7 +44,10 @@ target_include_directories(DataSQLite
c7be1f3
 
c7be1f3
 if(POCO_UNBUNDLED)
c7be1f3
         target_link_libraries(DataSQLite PUBLIC SQLite::SQLite3)
c7be1f3
-	target_compile_definitions(DataSQLite PUBLIC POCO_UNBUNDLED)
c7be1f3
+	target_compile_definitions(DataSQLite PUBLIC
c7be1f3
+		POCO_UNBUNDLED
c7be1f3
+		SQLITE_THREADSAFE=1
c7be1f3
+	)
c7be1f3
 else()
c7be1f3
 	if(WINCE)
c7be1f3
 		target_compile_definitions(DataSQLite PRIVATE SQLITE_MSVC_LOCALTIME_API)
c7be1f3
-- 
c7be1f3
2.24.1
c7be1f3