You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pure technically the project generates preset file which violates cmake-presets specification:
cacheVariables
An optional map of cache variables. The key is the variable name (which may not be an empty string), and the value is either null, a boolean (which is equivalent to a value of "TRUE" or "FALSE" and a type of BOOL), a string representing the value of the variable (which supports macro expansion), or an object with the following fields:
Field might be either null or boolean or string or an object, though in generated presets file the value is a number
I notice Conan's documentation does not mention this data type mismatch issue.
It would be better to avoid this kind of issue at the first place.
That is, Conan guarantees to generate CMakePresets.json compliant to the specification.
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
Conan tries to respect the type of the input. In that regard, it is totally expected and correct to have to str() something that is not a string to be correct. A different story is the management of other types, like bool and int. In that case, it is true that it could benefit from the explicit storage of types inside the generated presets (it doesn't seem that critical, it seems to work with booleans as strings True/False, for example), so lets try to improve that. The plan:
Store the type, at least for bools and ints in the generated presets
Make sure the CMake command line wrapper is using the right type
What is your question?
If I define CMake Cache like the following in conanfile.py, CLion's CMake Presets Integration will not work.
The root cause is analyzed by JetBrains engineer in https://youtrack.jetbrains.com/issue/CPP-34818:
A fix is relatively straight forward:
I notice Conan's documentation does not mention this data type mismatch issue.
It would be better to avoid this kind of issue at the first place.
That is, Conan guarantees to generate CMakePresets.json compliant to the specification.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: