]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix problem with detecting qhelpgenerator (native one is detected)
authorvsr <vsr@opencascade.com>
Tue, 6 Aug 2013 09:04:01 +0000 (09:04 +0000)
committervsr <vsr@opencascade.com>
Tue, 6 Aug 2013 09:04:01 +0000 (09:04 +0000)
CMakeLists.txt

index ae3bbc391105ad114391148b63665cf1e3afd1a0..46bcb0498248e980d9960d5b4cb6b831cc6f80ec 100644 (file)
@@ -58,6 +58,14 @@ FIND_PACKAGE(SalomeDoxygen REQUIRED)
 
 # From GUI: part 1 (Qt must be checked before ParaView)
 FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtHelp)
+# This search for qhelpgenerator is required here
+# to avoid detecting native one due to bug in ParaViewMacros.cmake
+FIND_PROGRAM(QT_HELP_GENERATOR
+    qhelpgenerator
+    PATHS "${QT_BINARY_DIR}"
+    NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
+    DOC "qhelpgenerator used to compile Qt help project files")
+MARK_AS_ADVANCED(QT_HELP_GENERATOR)
 
 # Specific to ParaVis:
 FIND_PACKAGE(SalomeParaView)