package/pkg-cmake.mk: don't unconditionally set CMAKE_CXX_COMPILER
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 2 Apr 2021 16:33:42 +0000 (18:33 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 2 Apr 2021 21:50:16 +0000 (23:50 +0200)
commit2c2c0192a2463b8e8d0f7937b89fa83b16d93cab
tree142db9868501c5489cc1c90ed59d87311734ef06
parent57d339f20bdb46f509fff37629b0e0725241b26d
package/pkg-cmake.mk: don't unconditionally set CMAKE_CXX_COMPILER

Don't unconditionally set CMAKE_CXX_COMPILER as it will raise a build
failure on qpid-proton because "if the toolchain specifies a value for
CMAKE_CXX_COMPILER, then CMake assumes the compiler works and goes
straight ahead trying to use it":
https://cmake.org/cmake/help/latest/module/CheckLanguage.html
https://issues.apache.org/jira/browse/PROTON-2365

Fixes:
 - http://autobuild.buildroot.org/results/05f344151100219c159ca4d466a453df96bf07fa

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: rename placeholder]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pkg-cmake.mk
support/misc/toolchainfile.cmake.in