From d5c2c252a51d3944a11b72a97448fe351ac42b20 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 28 Aug 2017 22:23:21 +0200 Subject: CMake build process: Fix of the Perl Alien::Wx querying script. --- cmake/modules/FindAlienWx.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmake/modules') diff --git a/cmake/modules/FindAlienWx.cmake b/cmake/modules/FindAlienWx.cmake index 8e8a942a2..a96c29195 100644 --- a/cmake/modules/FindAlienWx.cmake +++ b/cmake/modules/FindAlienWx.cmake @@ -19,6 +19,15 @@ execute_process( use strict; use warnings; use Text::ParseWords; + +BEGIN { + # CMake sets the environment variables CC and CXX to the detected C compiler. + # There is an issue with the Perl ExtUtils::CBuilder, which does not handle whitespaces + # in the paths correctly on Windows, so we rather drop the CMake auto-detected paths. + delete \$ENV{CC}; + delete \$ENV{CXX}; +} + use Alien::wxWidgets; use ExtUtils::CppGuess; -- cgit v1.2.3