Browse Source

Fixes configuration when enabling PythonQt wrapping

This commit fixes the incorrect Qt version check
introduced by commit 47b34216.
Jean-Christophe Fillion-Robin 11 years ago
parent
commit
cddec77667
1 changed files with 2 additions and 3 deletions
  1. 2 3
      CMake/ctkMacroWrapPythonQt.cmake

+ 2 - 3
CMake/ctkMacroWrapPythonQt.cmake

@@ -163,9 +163,8 @@ macro(ctkMacroWrapPythonQt WRAPPING_NAMESPACE TARGET SRCS_LIST_NAME SOURCES IS_W
     COMMENT "PythonQt Wrapping - Generating ${wrapper_init_cpp_filename}"
     VERBATIM
     )
-
-  if (CTK_QT_VERSION VERSION_EQUAL "4")
-    QT5_WRAP_CPP(${TARGET}_MOC_CXX ${CMAKE_CURRENT_BINARY_DIR}/${wrapper_h_filename})
+  if(CTK_QT_VERSION VERSION_GREATER "4")
+    qt5_wrap_cpp(${TARGET}_MOC_CXX ${CMAKE_CURRENT_BINARY_DIR}/${wrapper_h_filename})
   else()
     QT4_WRAP_CPP(${TARGET}_MOC_CXX ${CMAKE_CURRENT_BINARY_DIR}/${wrapper_h_filename})
   endif()