Set the C++ version to C++11 for all compilers but Visual Studio C++.

This commit is contained in:
bubnikv 2016-11-16 13:00:36 +01:00
parent 4c407c8a59
commit 68e9ec0d41

View file

@ -24,6 +24,10 @@ if ($mswin) {
# If <math.h> is included, we want the #defines to be active (M_PI etc.)
push @cflags, qw(-D_WIN32 -DNOMINMAX -D_USE_MATH_DEFINES);
}
if (! $cpp_guess->is_msvc) {
# Don't use the version flag on MS Visual Studio, as it starts to recognize them up to 2015 and it uses different syntax.
push @cflags, qw(-std=c++11);
}
my @early_includes = ();
my @INC = qw(-Isrc/libslic3r -Isrc/glew/include);