From ba0f0b177c0f7b7d196778beb1d2fe772bc3019d Mon Sep 17 00:00:00 2001 From: bruneton Date: Wed, 2 Oct 2013 12:45:50 +0000 Subject: [PATCH] CMake: minor: OpenGL detection: setting OPENGL_INCLUDE_DIR to blank under Win32 --- adm_local/cmake_files/FindSalomeOpenGL.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adm_local/cmake_files/FindSalomeOpenGL.cmake b/adm_local/cmake_files/FindSalomeOpenGL.cmake index 964284eea..b9715697e 100644 --- a/adm_local/cmake_files/FindSalomeOpenGL.cmake +++ b/adm_local/cmake_files/FindSalomeOpenGL.cmake @@ -23,5 +23,10 @@ # # !! Please read the generic detection procedure in SalomeMacros.cmake !! # +IF(WIN32) + # The variable is not even set under Windows 32. Force it to blank so that + # we don't get a warning in the big macro. + SET(OPENGL_INCLUDE_DIR "") +ENDIF() SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenGL OPENGL_INCLUDE_DIR 1) #MARK_AS_ADVANCED() -- 2.39.2