Skip to content
Snippets Groups Projects
Commit dba2e25e authored by Marco Clemencic's avatar Marco Clemencic Committed by Dmitry Popov
Browse files

Set OpenGL_GL_PREFERENCE to silence CMake CMP0072 warning

parent d6eac53f
No related branches found
No related tags found
1 merge request!43Release of v104r3
...@@ -38,6 +38,8 @@ endif() ...@@ -38,6 +38,8 @@ endif()
set(GEANT4_TAG ${GEANT4_TAG} CACHE STRING "Tag of Geant4 to get from the Geant4-srcs repository") set(GEANT4_TAG ${GEANT4_TAG} CACHE STRING "Tag of Geant4 to get from the Geant4-srcs repository")
set(OpenGL_GL_PREFERENCE "GLVND" CACHE STRING "Preferred GL library to use (see https://cmake.org/cmake/help/v3.12/policy/CMP0072.html)")
include(ExternalProject) include(ExternalProject)
ExternalProject_Add(Geant4 ExternalProject_Add(Geant4
...@@ -64,6 +66,7 @@ ExternalProject_Add(Geant4 ...@@ -64,6 +66,7 @@ ExternalProject_Add(Geant4
# -DLCG_USE_NATIVE_COMPILER=${LCG_USE_NATIVE_COMPILER} # -DLCG_USE_NATIVE_COMPILER=${LCG_USE_NATIVE_COMPILER}
-DCMAKE_MODULE_PATH=${Geant4Files_DIR} -DCMAKE_MODULE_PATH=${Geant4Files_DIR}
-DGEANT4_INSTALL_EXAMPLES=OFF -DGEANT4_INSTALL_EXAMPLES=OFF
-DOpenGL_GL_PREFERENCE=${OpenGL_GL_PREFERENCE}
) )
# Hardcoded list of external packages used by Geant4, needed to prepare the # Hardcoded list of external packages used by Geant4, needed to prepare the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment