We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've been getting this error when trying to build a CMake-based folder in VS 2017:
1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/FindThreads.cmake(128): CHECK_INCLUDE_FILE(pthread.h CMAKE_HAVE_PTHREAD_H ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(38): if(NOT DEFINED CMAKE_HAVE_PTHREAD_H ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(39): if(CMAKE_REQUIRED_INCLUDES ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(41): else() 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(42): set(CHECK_INCLUDE_FILE_C_INCLUDE_DIRS ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(44): set(MACRO_CHECK_INCLUDE_FILE_FLAGS ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(45): set(CHECK_INCLUDE_FILE_VAR pthread.h ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(46): configure_file(C:/PROGRAM FILES (X86)/MICROSOFT VISUAL STUDIO/PREVIEW/PROFESSIONAL/COMMON7/IDE/COMMONEXTENSIONS/MICROSOFT/CMAKE/CMake/share/cmake-3.8/Modules/CheckIncludeFile.c.in C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp/CheckIncludeFile.c ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(48): if(NOT CMAKE_REQUIRED_QUIET ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(49): message(STATUS Looking for pthread.h ) 1> -- Looking for pthread.h 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(51): if(2 EQUAL 3 ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(56): try_compile(CMAKE_HAVE_PTHREAD_H C:/Git/Licensing/out/x64-Debug C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp/CheckIncludeFile.c COMPILE_DEFINITIONS CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING= OUTPUT_VARIABLE OUTPUT ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(65): if(2 EQUAL 3 ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(69): if(CMAKE_HAVE_PTHREAD_H ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(78): else() 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(79): if(NOT CMAKE_REQUIRED_QUIET ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(80): message(STATUS Looking for pthread.h - not found ) 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(82): set(CMAKE_HAVE_PTHREAD_H CACHE INTERNAL Have include pthread.h ) 1> -- Looking for pthread.h - not found 1> C:/Program Files (x86)/Microsoft Visual Studio/Preview/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.8/Modules/CheckIncludeFile.cmake(83): file(APPEND C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeError.log Determining if the include file pthread.h exists failed with the following output: 1> Change Dir: C:/Git/Licensing/out/x64-Debug/CMakeFiles/CMakeTmp 1> 1> Run Build Command:"C:/PROGRA~2/MIB055~1/Preview/PROFES~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe" "cmTC_6c29b" 1> [1/2] Building C object CMakeFiles\cmTC_6c29b.dir\CheckIncludeFile.c.obj 1> FAILED: CMakeFiles/cmTC_6c29b.dir/CheckIncludeFile.c.obj 1> C:\PROGRA~2\MIB055~1\Preview\PROFES~1\VC\Tools\MSVC\1411~1.255\bin\HostX86\x64\cl.exe /nologo /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_6c29b.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_6c29b.dir\ /FS -c CheckIncludeFile.c 1> CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory 1> ninja: build stopped: subcommand failed.
This appears to be an issue with the CMake artifacts that come with VS's version of CMake. Anybody know of a workaround?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've been getting this error when trying to build a CMake-based folder in VS 2017:
This appears to be an issue with the CMake artifacts that come with VS's version of CMake. Anybody know of a workaround?
The text was updated successfully, but these errors were encountered: