NET FrameworkĬopyright (C) Microsoft Corporation. Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe cmTC_2345d.vcxproj /p:Configuration=Debug /p:Platform=圆4 /p:VisualStudioVersion=16.0 /v:m & Microsoft (R) Build Engine version 16.10.2+857e5a733 for. Here is the content of CMakeError.log: Performing C++ SOURCE FILE Test COMPILER_HAS_DEPRECATED_ATTR failed with the following output:Ĭhange Dir: F:/Projects/BuildTools/mongo-driver-3.6/mongo-cxx-driver-releases-v3.6/cmake-build/CMakeFiles/CMakeTmp See also "F:/Projects/BuildTools/mongo-driver-3.6/mongo-cxx-driver-releases-v3.6/cmake-build/CMakeFiles/CMakeError.log". See also "F:/Projects/BuildTools/mongo-driver-3.6/mongo-cxx-driver-releases-v3.6/cmake-build/CMakeFiles/CMakeOutput.log". Configuring incomplete, errors occurred! instance: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional Looking for C++ include pthread.h - not found Src/mongocxx/CMakeLists.txt:17 (ParseVersion) Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed Performing Test COMPILER_HAS_DEPRECATED_ATTR Auto-configuring bsoncxx to use C++17 std library polyfills since C++17 is active and user didn't specify otherwise ![]() Src/bsoncxx/CMakeLists.txt:17 (ParseVersion) Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/7/bin/Host圆4/圆4/cl.exe - skippedĬMake Error at cmake/ParseVersion.cmake:17 (list): The C compiler identification is MSVC 8.1 No build type selected, default is Release Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/7/bin/Host圆4/圆4/cl.exe - skipped The CXX compiler identification is MSVC 8.1 I would upload the cmake error and output logs but the forum will not allow me to.Īny assistance would be greatly appreciated.ĭave Dutton >cmake -G "Visual Studio 16 2019" -A "圆4" -DBUILD_VERSION=3.6 -DBOOST_ROOT=F:\Projects\BuildTools\boost-1_73_0 -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="/Zc:_cplusplus" -DCMAKE_PREFIX_PATH=F:\Projects\BuildTools\mongo-driver-3.6\mongo-c-driver-1.18.0 -DCMAKE_INSTALL_PREFIX=F:\Projects\BuildTools\mongo-driver-3.6\mongo-cxx-driver-releases-v3.6. It will have a “generator” property that is most likely set to “Ninja”.I am having a problem building the mongo-cxx driver on Windows. If your project is using CMake Presets, in CMakePresets.json, find the “windows-base” configure preset. Ninja is the default generator when working with CMake projects in Visual Studio so you will need to modify your project’s CMakePresets.json or CMakeSettings.json file to change this. Support for other generators, such as Ninja, is planned but it isn’t available yet. You will also need to make sure you are using the Visual Studio generator with CMake. Visual Studio ships with the latest version of CMake, but this may be a consideration if you use this project across operating systems or need to use an older version of CMake. Note: Enabling C++20 requires CMake 3.12 or higher. Set_property(TARGET $TargetName PROPERTY CXX_STANDARD 20) Starting in this preview, our CMake project template will do that for you, but if you are working with an existing project you will need to add this to your CMakeLists.txt: Just make sure you have enabled the C++20 language standard. ![]() ![]() You don’t need to do anything special in your CMake project files. While CMake support for modules in Visual Studio is still experimental, it is straightforward to start using it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |