SQLiteCpp/cmake/SQLiteCppConfig.cmake.in
sum01 42f476d918
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.
2020-05-14 13:50:31 -04:00

12 lines
318 B
CMake

include(CMakeFindDependencyMacro)
find_dependency(SQLite3 REQUIRED)
if(@UNIX@)
set(THREADS_PREFER_PTHREAD_FLAG @THREADS_PREFER_PTHREAD_FLAG@)
find_dependency(Threads REQUIRED)
endif()
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")