Skip to content

Commit 0bc212a

Browse files
committed
cMake: Remove support for old cMake versions
1 parent 02b3ee5 commit 0bc212a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ macro(CompilerChecksAndSetups)
99

1010
# ================================================================================
1111

12-
# Needed for boost1.69
13-
# Avoid that Python (pyerrors.h) defines snprintf and vsnprintf
14-
if (MSVC AND NOT MSVC_VERSION VERSION_LESS 1900)
15-
add_definitions(-DHAVE_SNPRINTF)
16-
elseif (MINGW)
17-
add_definitions(-DHAVE_SNPRINTF)
18-
endif()
19-
2012
# Allow developers to use Boost < 1.74
2113
if (NOT BOOST_MIN_VERSION)
2214
set(BOOST_MIN_VERSION 1.74)
@@ -97,9 +89,7 @@ macro(CompilerChecksAndSetups)
9789
#
9890
# https://en.wikipedia.org/wiki/Xcode#Latest_versions
9991
if (APPLE)
100-
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)
101-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
102-
endif()
92+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
10393
add_definitions(-DGL_SILENCE_DEPRECATION)
10494
elseif (UNIX)
10595
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")

0 commit comments

Comments
 (0)