conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
946 stars 1.72k forks source link

[package] yaml-cpp/0.6.3: ConanException: 'settings.compiler.cppstd' doesn't exist for 'Visual Studio' #2525

Closed MartinDelille closed 4 years ago

MartinDelille commented 4 years ago

yaml-cpp/0.6.3 doesn't works on windows although yaml-cpp/0.6.2 from bincrafters works.

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

C:\dev> conan profile show default
Configuration for profile default:

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=15
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Try to run conan with the following conanfile.txt:

[requires]
libsndfile/0.6.3

[generators]
qmake

And the following command: conan install .. --build missing --update

Logs (Include/Attach if Applicable)

Click to expand log ``` Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=15 os=Windows os_build=Windows [options] [build_requires] [env] yaml-cpp/0.6.3: Not found in local cache, looking in remotes... yaml-cpp/0.6.3: Trying with 'conan-center'... Downloading conanmanifest.txt Downloading conanfile.py Downloading conan_export.tgz yaml-cpp/0.6.3: Downloaded recipe revision 0 ERROR: yaml-cpp/0.6.3: Error in configure() method, line 35 if self.settings.compiler.cppstd: ConanException: 'settings.compiler.cppstd' doesn't exist for 'Visual Studio' 'settings.compiler' possible configurations are ['runtime', 'toolset', 'version'] ```
ericLemanissier commented 4 years ago

you need to upgrade your settings.yml file. mine has:

compiler:
[...]
    Visual Studio: &visual_studio
        runtime: [MD, MT, MTd, MDd]
        version: ["8", "9", "10", "11", "12", "14", "15", "16"]
        toolset: [None, v90, v100, v110, v110_xp, v120, v120_xp,
                  v140, v140_xp, v140_clang_c2, LLVM-vs2012, LLVM-vs2012_xp,
                  LLVM-vs2013, LLVM-vs2013_xp, LLVM-vs2014, LLVM-vs2014_xp,
                  LLVM-vs2017, LLVM-vs2017_xp, v141, v141_xp, v141_clang_c2, v142]
        cppstd: [None, 14, 17, 20]
MartinDelille commented 4 years ago

Indeed.