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

Doesn't find Threads #9

Closed
grisevg opened this issue Oct 7, 2016 · 1 comment
Closed

Doesn't find Threads #9

grisevg opened this issue Oct 7, 2016 · 1 comment

Comments

@grisevg
Copy link

grisevg commented Oct 7, 2016

find_package(Threads REQUIRED) fails with:

-- Looking for pthread.h - not found
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
 Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
 /Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
 /Applications/CMake.app/Contents/share/cmake-3.6/Modules/FindThreads.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
 dlib/CMakeLists.txt:195 (find_package)

If I generate normal Xcode macos project and change type to iOS manually, it works and compiles fine.

gjasny added a commit to gjasny/ios-cmake that referenced this issue Mar 12, 2017
@gjasny
Copy link

gjasny commented Mar 12, 2017

See also CMake #16695

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

3 participants