cpp-best-practices / gui_starter_template

A template CMake project to get you started with C++ and tooling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing configuration with VS 2017

tbeu opened this issue · comments

commented

I tried to configure the template with Conan 1.52.0, CMake 3.24.1 and VS 2017 locally, but failed:

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1264 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  CMakeLists.txt:26 (FetchContent_Declare)
This warning is for project developers.  Use -Wno-dev to suppress it.

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
Developer mode is ON. For production, use `-DENABLE_DEVELOPER_MODE:BOOL=OFF`. Building the project for the developer...
The default CMAKE_C_STANDARD used by external targets and tools is not set yet. Using the latest supported C standard that is 11
Running `C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat x64` to set up the MSVC environment
Conan: Adding cci remote repository (https://center.conan.io) verify ssl (True)
Conan: Adding bincrafters remote repository (https://bincrafters.jfrog.io/artifactory/api/conan/public-conan) verify ssl (True)
Multi-configuration build: 'Debug;Release;RelWithDebInfo;MinSizeRel'!
Running Conan for build type 'Debug'
Conan: Detected VS runtime: MDd
Conan: checking conan executable
Conan: Found program C:/Python37/Scripts/conan.exe
Conan: Version found Conan version 1.52.0
Conan executing: C:/Python37/Scripts/conan.exe install C:/Projects/gui_starter_template --build missing --env CC=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe --env CXX=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe --settings arch=x86_64 --settings build_type=Debug --settings compiler=Visual Studio --settings compiler.version=15 --settings compiler.runtime=MDd --settings compiler.cppstd=20
CMake Error at C:/Users/USER/.conan/data/fmt/8.1.1/_/_/build/67647ff867def3ba6e3c8fcf23f3b0612ab98b8d/build/generators/conan_toolchain.cmake:13 (message):

  The 'CMakeToolchain' generator only works with CMake >= 3.15
Call Stack (most recent call first):
  C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:94 (include)
  CMakeLists.txt:66 (project)



fmt/8.1.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
fmt/8.1.1: ERROR: Package '67647ff867def3ba6e3c8fcf23f3b0612ab98b8d' build failed
fmt/8.1.1: WARN: Build folder C:\Users\USER\.conan\data\fmt\8.1.1\_\_\build\67647ff867def3ba6e3c8fcf23f3b0612ab98b8d\build
ERROR: fmt/8.1.1: Error in build() method, line 84
	cmake.configure()
	ConanException: Error 1 while executing cmake -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE="C:/Users/USER/.conan/data/fmt/8.1.1/_/_/build/67647ff867def3ba6e3c8fcf23f3b0612ab98b8d/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/USER/.conan/data/fmt/8.1.1/_/_/package/67647ff867def3ba6e3c8fcf23f3b0612ab98b8d" -DFMT_DOC="OFF" -DFMT_TEST="OFF" -DFMT_INSTALL="ON" -DFMT_LIB_DIR="lib" -DFMT_OS="ON" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\USER\.conan\data\fmt\8.1.1\_\_\build\67647ff867def3ba6e3c8fcf23f3b0612ab98b8d\src"

CMake Error at win64/conan.cmake:638 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  win64/_deps/_project_options-src/src/Conan.cmake:61 (conan_cmake_install)
  win64/_deps/_project_options-src/src/Index.cmake:212 (run_conan)
  win64/_deps/_project_options-src/src/DynamicProjectOptions.cmake:147 (project_options)
  CMakeLists.txt:100 (dynamic_project_options)


Configuring incomplete, errors occurred!
See also "C:/Projects/gui_starter_template/win64/CMakeFiles/CMakeOutput.log".