Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default cmake command produced: Could NOT find Threads (missing: Threads_FOUND) #348

Closed
rmpowell77 opened this issue Jun 26, 2021 · 1 comment

Comments

@rmpowell77
Copy link
Contributor

➜  build2 git:(main) ✗ cmake ..
...
CMake Error at /opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Threads (missing: Threads_FOUND)

Looks like it's similar to:
alicevision/geogram#2

assume built-in pthreads on MacOS

IF(APPLE)
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)
ENDIF()

rmpowell77 added a commit that referenced this issue Jun 27, 2021
issue #348: default cmake command produced: Could NOT find Threads
@rmpowell77
Copy link
Contributor Author

addressed in #357

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

No branches or pull requests

1 participant