From: tbaudier Date: Mon, 4 Mar 2019 13:25:06 +0000 (+0100) Subject: Inverse VTK_VERSION VERSION_GREATER to VERSION_LESS X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff_plain;h=83eb68efc39ad8fcb5e4e684afafcfc86b829c96 Inverse VTK_VERSION VERSION_GREATER to VERSION_LESS It seems that VERSION_GREATER is not granter and equal, so I prefer to use VERSION_LESS to include the version 8.2.0 --- diff --git a/vv/CMakeLists.txt b/vv/CMakeLists.txt index 6f22571..107fdef 100644 --- a/vv/CMakeLists.txt +++ b/vv/CMakeLists.txt @@ -239,21 +239,21 @@ endif(CLITK_USE_PACS_CONNECTION) #Special case for Main Window with QVTKWidget according VTK version foreach(tool ${vv_TOOLS_VTK7} ${vv_COMMON_WITH_UI_VTK7}) set(vv_SRCS ${vv_SRCS} ${tool}.cxx) - if(VTK_VERSION VERSION_GREATER "8.2.0") + if(VTK_VERSION VERSION_LESS "8.2.0") if(vv_QT_VERSION VERSION_GREATER "4") QT5_WRAP_CPP(vv_SRCS ${tool}.h) - QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui) + QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui) else() QT4_WRAP_CPP(vv_SRCS ${tool}.h) - QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui) + QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui) endif() else() if(vv_QT_VERSION VERSION_GREATER "4") QT5_WRAP_CPP(vv_SRCS ${tool}.h) - QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui) + QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui) else() QT4_WRAP_CPP(vv_SRCS ${tool}.h) - QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui) + QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui) endif() endif() endforeach(tool)