-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
-
Environment:OS: Windows 10 Enterprise (Version 1909, OS build 18363.535)
Compiler: VS 2019 x64 (16.4.2)
CMake: 3.16.2
Git: git clone https://github.com/mongodb/mongo-cxx-driver.git \
--branch releases/stable --depth 1
I got 2 Error:
1/ Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
2/ Looking for C++ include pthread.h - not found
****************************************************************
here my Cmake result and when I tried to build it by VS, it failed.
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
The CXX compiler identification is MSVC 19.24.28314.0
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe – works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
No build type selected, default is Release
The C compiler identification is MSVC 19.24.28314.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe – works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Auto-configuring bsoncxx to use boost std library polyfills since C++17 is inactive and compiler is MSVC
Found Boost: C:/boost (found suitable version "1.72.0", minimum required is "1.56.0")
Performing Test COMPILER_HAS_DEPRECATED_ATTR
Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
Looking for C++ include pthread.h
Looking for C++ include pthread.h - not found
Found Threads: TRUE
Configuring done