Skip to content

CMake: fix find_package(Threads)#478

Merged
garyscavone merged 1 commit intothestk:masterfrom
timblechmann:fix/cmake-thread-fix
Feb 27, 2026
Merged

CMake: fix find_package(Threads)#478
garyscavone merged 1 commit intothestk:masterfrom
timblechmann:fix/cmake-thread-fix

Conversation

@timblechmann
Copy link
Contributor

find_package(Threads) does not take options, but CMAKE_THREAD_PREFER_PTHREAD/THREADS_PREFER_PTHREAD_FLAG are variables that need to be defined when calling find_package.

This fixes configure errors when using conan_provider.cmake as package provider.

`find_package(Threads)` does not take options, but
CMAKE_THREAD_PREFER_PTHREAD/THREADS_PREFER_PTHREAD_FLAG are variables
that need to be defined when calling find_package.

This fixes configure errors when using conan_provider.cmake as package
provider.
@garyscavone garyscavone merged commit e5f0774 into thestk:master Feb 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants