mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00

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.
12 lines
318 B
CMake
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@")
|