From bb1e4ed7c472ea22386da8448c68f418768c7df9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 5 Jan 2021 15:12:46 +0100 Subject: [PATCH] Path: [skip ci] fix build failure when using boost 1.75 --- src/Mod/Path/App/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Path/App/CMakeLists.txt b/src/Mod/Path/App/CMakeLists.txt index 5177dcf8f8..2ec0a12615 100644 --- a/src/Mod/Path/App/CMakeLists.txt +++ b/src/Mod/Path/App/CMakeLists.txt @@ -141,6 +141,12 @@ SOURCE_GROUP("Module" FILES ${Mod_SRCS}) add_library(Path SHARED ${Path_SRCS}) target_link_libraries(Path ${Path_LIBS}) +# Boost >= 1.75.0 +if(NOT ${Boost_VERSION} LESS 107500) + set_target_properties(Path PROPERTIES CXX_STANDARD_REQUIRED ON) + set_target_properties(Path PROPERTIES CXX_STANDARD 14) +endif() + if(FREECAD_USE_PCH) add_definitions(-D_PreComp_) GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" Path_CPP_SRCS ${Path_SRCS})