In my program I search for Geant4 with the following CMake instruction: find_package(Geant4 10.04 QUIET OPTIONAL_COMPONENTS qt) It correctly finds the qt components, and indeed the value of the Geant4_qt_FOUND variable is ON. However, my application is unable to display the detector geometry with Qt OpenGL and it prints this error message: parameter value (OGL) is not listed in the candidate List. Candidates are: ATree DAWNFILE HepRepFile HepRepXML RayTracer VRML1FILE VRML2FILE gMocrenFile If I change the find_package invocation to: find_package(Geant4 10.04 QUIET COMPONENTS qt) then it works as expected. I investigated a bit and I found that in Geant4Config.cmake at line 435 the setting of the compiler flags for using Qt OpenGL is guarded by a check on the Geant4_FIND_REQUIRED_qt variable. This variable is set to 1 only if find_package is called with COMPONENTS but not when called with OPTIONAL_COMPONENTS, even when Qt is found.
Thanks for the report, we'll take a look.
Now fixed on master, and required a more general fix so thanks for the report! The fix will be in this winter's 10.6 release, plus any patches to earlier versions.