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
cmake-conan adds tools.build:compiler_executables to host profile. I've noticed that it breaks build of OpenSSL for some reason. Maybe it's caused by spaces in path to compiler? I'm not used to makefiles but it seems that it doesn't have double quotes around $(CC).
Broken build has this makefile
##### User defined commands and flags ################################
CC=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
Working one from profile without tools.build:compiler_executables
##### User defined commands and flags ################################
CC=cl
It's worth noting that even though you may fix openssl, full path of cl compiler in tools.build:compiler_executables is not robust because it contains spaces, and autotools don't support compiler full paths with spaces. A workaround has been proposed at conan level (in AutotoolsToolchain, paths defined in tools.build:compiler_executables would have been curated by using a trick based on short paths on Windows) but rejected (only the conversion to unix_path has been kept in another PR): conan-io/conan#12194
It's worth noting that even though you may fix openssl, full path of cl compiler in tools.build:compiler_executables is not robust because it contains spaces, and autotools don't support compiler full paths with spaces. A workaround has been proposed at conan level (in AutotoolsToolchain, paths defined in tools.build:compiler_executables would have been curated by using a trick based on short paths on Windows) but rejected (only the conversion to unix_path has been kept in another PR): conan-io/conan#12194
Is it possible to unset tools.build:compiler_executables for specific package through profile?
Description
cmake-conan adds tools.build:compiler_executables to host profile. I've noticed that it breaks build of OpenSSL for some reason. Maybe it's caused by spaces in path to compiler? I'm not used to makefiles but it seems that it doesn't have double quotes around $(CC).
Broken build has this makefile
Working one from profile without tools.build:compiler_executables
Package and Environment Details
Conan profile
[settings]
arch=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.update=9
compiler.version=192
os=Windows
[tool_requires]
[conf]
tools.cmake.cmaketoolchain:generator=Visual Studio 16 2019
tools.build:compiler_executables={'c': 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe', 'cpp': 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe'}
Steps to reproduce
conan install --requires openssl/1.1.1w --build=missing --profile:build=build_profile --profile:host=host_profile
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: