]> Creatis software - clitk.git/commitdiff
Find the correct version of Qt based on the VTK link in CMake
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 14 Jun 2016 06:23:41 +0000 (08:23 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 14 Jun 2016 06:23:41 +0000 (08:23 +0200)
cmake/build_opt.cmake

index 502a05656364deaaa86b02eef2642a134b1c42d8..2331750a80c279520f69d917f6820cffe4d11911 100644 (file)
@@ -30,7 +30,11 @@ if(CLITK_BUILD_VV)
  if(VTK_VERSION VERSION_LESS 6.0.0)
     set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version")
  else()
-    set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version")
+    if(VTK_QT_VERSION VERSION_LESS 5)
+       set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version")
+    else()
+       set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version")
+    endif()
  endif()
 
   add_subdirectory(${CLITK_SOURCE_DIR}/vv ${PROJECT_BINARY_DIR}/vv)