conan-io / cmake-conan

CMake wrapper for conan C and C++ package manager
MIT License
814 stars 247 forks source link

Different formatting of msvc runtime value conan_provider.cmake #614

Open Bobini1 opened 5 months ago

Bobini1 commented 5 months ago

I got an error when trying out the plugin in Clion on my project:

CMake Error at conan_provider.cmake:212 (message):
  CMake-Conan: unable to map MSVC runtime:
  $<$<CONFIG:Debug>:MultiThreadedDebugDLL>$<$<CONFIG:Release>:MultiThreadedDLL>
  to Conan settings

It looks like it is in the list of known values but formatted as MultiThreaded$<$<CONFIG:Debug>:Debug>DLL. I appended my value to the list of known values, it seems to work fine. See https://github.com/conan-io/cmake-conan/pull/613.

edidada commented 2 days ago

cmake command ,delete

-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="conan_provider.cmake" -DCONAN_COMMAND="D:\dev_tools\Conan\conan\conan.exe"