mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
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:
parent
a5e1c70883
commit
42f476d918
@ -1,5 +1,9 @@
|
||||
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@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user