Set the C++ version to C++11 for all compilers but Visual Studio C++.
This commit is contained in:
parent
4c407c8a59
commit
68e9ec0d41
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue