Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-08-28 23:23:21 +0300
committerbubnikv <bubnikv@gmail.com>2017-08-28 23:23:21 +0300
commitd5c2c252a51d3944a11b72a97448fe351ac42b20 (patch)
tree8eafffb7498e49568dcae0f1ed38d5211b4ab13b /cmake/modules
parent0cb491e13522e8d5847354c57bd6568e534ee733 (diff)
CMake build process: Fix of the Perl Alien::Wx querying script.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindAlienWx.cmake9
1 files changed, 9 insertions, 0 deletions
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;