Add missing Threads dependency to Config.cmake.in

Without this, systems that linked against Threads::Threads (namely
Linux) don't "just work" with find_package(SQLiteCpp), but instead
require you to find & link against Threads manually.

So this fixes that by finiding it for you, if it was used.
This commit is contained in:
sum01 2020-05-14 13:50:31 -04:00
parent a5e1c70883
commit 42f476d918
No known key found for this signature in database
GPG Key ID: 339CB8BE119B90C0

View File

@ -1,5 +1,9 @@
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(SQLite3) find_dependency(SQLite3 REQUIRED)
if(@UNIX@)
set(THREADS_PREFER_PTHREAD_FLAG @THREADS_PREFER_PTHREAD_FLAG@)
find_dependency(Threads REQUIRED)
endif()
@PACKAGE_INIT@ @PACKAGE_INIT@