Skip to content

Conan 2.0 doesn't accept values from conan_cmake_autodetect() #421

@xahon

Description

@xahon

ERROR: Invalid setting 'Visual Studio' is not a valid 'settings.compiler' value.
Possible values are ['sun-cc', 'gcc', 'msvc', 'clang', 'apple-clang', 'intel-cc', 'qcc', 'mcst-lcc']

My current workaround is

conan_cmake_autodetect(settings)
list(FIND settings "compiler=Visual Studio" index)
if (NOT ${index} EQUAL -1)
    list(REMOVE_AT settings ${index})
    list(INSERT settings ${index} "compiler=msvc")
endif()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions