Errors with cmake of MFRONT in ogs6
Created by: yezhigangzju
When I change the OGS_USE_MFRONT in CMakeLists.txt from OFF to ON and cmake the source code in the CMD of Win 10, like this:
cmake F:\ogs6\ogs6_source_MF -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Debug -OGS_CONAN_BUILD=all
instead of giving a message "Configuring done", all I got were error messages:
-
"Configuring incomplete, errors occurred!" in the CMD terminal;
-
" Determining if the include file pthread.h exists failed with the following output:Change Dir: F:/ogs6/ogs6_debug_MF/CMakeFiles/CMakeTmp... Determining if the function sgemm_ exists failed with the following output:Change Dir: F:/ogs6/ogs6_debug_MF/CMakeFiles/CMakeTmp... Performing C++ SOURCE FILE Test COMPILER_HAS_DEPRECATED_ATTR failed with the following output:Change Dir: F:/ogs6/ogs6_debug_MF/CMakeFiles/CMakeTmp... F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\src.cxx(1,16): error C2065: “deprecated”: 未声明的标识符 [F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\cmTC_c09c5.vcxproj] F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\src.cxx(1,31): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\cmTC_c09c5.vcxproj] F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\src.cxx(1,37): error C2448: “attribute”: 函数样式初始值设定项类似函数定义 [F:\ogs6\ogs6_debug_MF\CMakeFiles\CMakeTmp\cmTC_c09c5.vcxproj]... " in the CMakeError.log files.
- Version: Latest version of the source code
- Platform: Win 10
So, how should I do to compile the source code correctly? Many thanks...
Log files are given below: