From c30c325537b09071c3cd680f04f4a69438e537b4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 19 May 2017 12:53:31 +0200 Subject: [PATCH] fix build failure if VTK is not enabled --- src/Mod/Fem/App/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/App/CMakeLists.txt b/src/Mod/Fem/App/CMakeLists.txt index abf59e7ebf..92fe5126f8 100644 --- a/src/Mod/Fem/App/CMakeLists.txt +++ b/src/Mod/Fem/App/CMakeLists.txt @@ -46,11 +46,16 @@ generate_from_xml(FemPostPipelinePy) SET(Python_SRCS FemMeshPy.xml FemMeshPyImp.cpp - FemPostPipelinePy.xml - FemPostPipelinePyImp.cpp HypothesisPy.cpp HypothesisPy.h ) +if(BUILD_FEM_VTK) +SET(Python_SRCS + ${Python_SRCS} + FemPostPipelinePy.xml + FemPostPipelinePyImp.cpp +) +endif(BUILD_FEM_VTK) SOURCE_GROUP("Python" FILES ${Python_SRCS}) SET(Mod_SRCS