I setup openGl to work with Geant4 and now I’m trying to run exampled B1, which I previously had no errors building. Now when I run cmake
-DGeant4_DIR="%HOMEPATH%\Geant4\geant4_10_06-install\lib\Geant4-10.6.1" “%HOMEPATH%\Geant4\geant4_10_06-install\share\Geant4-10.6.1\examples\basic\B1”
I get the error
CMake Error at /Users/Stephen/Geant4/geant4_10_06-install/lib/Geant4-10.6.1/Geant4PackageCache.cmake:18 (geant4_set_and_check_package_variable):
geant4_set_and_check_package_variable Macro invoked with incorrect
arguments for macro named: geant4_set_and_check_package_variable
Call Stack (most recent call first):
/Users/Stephen/Geant4/geant4_10_06-install/lib/Geant4-10.6.1/Geant4Config.cmake:240 (include)
CMakeLists.txt:14 (find_package)
– Found OpenGL: opengl32
– Configuring incomplete, errors occurred!
See also “C:/Users/Stephen/Geant4/geant4_10_06-install/share/Geant4-10.6.1/examples/basic/B1-build/CMakeFiles/CMakeOutput.log”.
I read in another post that this was due to an issue locating the openGl libraries but the answer was very vague and I can’t figure out how to fix it. Any help would be much appreciated