cmake-conan
cmake-conan copied to clipboard
How to use conan_config_install with --args argument
Usage example of conan config install command (install conan config from git repository on tag v1.0):
conan config isntall [email protected]:gomons/conan_config.git --args="-b v1.0"
How to call the command above by using conan_config_install macro?
To make it work I need to remove extra quotes in conan_config_install implementation:
set(CONAN_ARGS_ARGS "--args=\"${CONAN_ARGS}\"")
change to this:
set(CONAN_ARGS_ARGS "--args=${CONAN_ARGS}")
It's also unclear to me why ARGS is a multi value argument and not single value argument with string value.