smesh: [skip ci] build FEM & MeshPart with C++14 when using external smesh because it doesn't support C++17 yet

This commit is contained in:
wmayer
2021-03-31 15:35:28 +02:00
parent 663ac994a7
commit 5169a7e852
4 changed files with 25 additions and 1 deletions

View File

@@ -65,6 +65,12 @@ set(MeshPart_Scripts
add_library(MeshPart SHARED ${MeshPart_SRCS} ${MeshPart_Scripts})
target_link_libraries(MeshPart ${MeshPart_LIBS})
# external SMESH doesn't support C++17 yet
if(FREECAD_USE_EXTERNAL_SMESH)
set_target_properties(MeshPart PROPERTIES CXX_STANDARD_REQUIRED ON)
set_target_properties(MeshPart PROPERTIES CXX_STANDARD 14)
endif()
fc_target_copy_resource_flat(MeshPart
${CMAKE_CURRENT_SOURCE_DIR}

View File

@@ -91,6 +91,12 @@ set(FLATMESH_PY_SRCS
add_library(MeshPartGui SHARED ${MeshPartGui_SRCS} ${MeshPartGui_Scripts} ${FLATMESH_PY_SRCS})
target_link_libraries(MeshPartGui ${MeshPartGui_LIBS})
# external SMESH doesn't support C++17 yet
if(FREECAD_USE_EXTERNAL_SMESH)
set_target_properties(MeshPartGui PROPERTIES CXX_STANDARD_REQUIRED ON)
set_target_properties(MeshPartGui PROPERTIES CXX_STANDARD 14)
endif()
SET_BIN_DIR(MeshPartGui MeshPartGui /Mod/MeshPart)
SET_PYTHON_PREFIX_SUFFIX(MeshPartGui)