Browse Source

FIX: minor fix, OPENGL_INCLUDE_PATH was set 2 times

Sebastien Barre 23 years ago
parent
commit
1d7c2eaf90
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Modules/FindOpenGL.cmake

+ 3 - 3
Modules/FindOpenGL.cmake

@@ -133,14 +133,14 @@ IF(OPENGL_INCLUDE_DIR)
 
     SET( OPENGL_FOUND "YES" )
 
-    # The following deprecated settings are for backwards 
-    # compatibility with CMake1.4
+    # This deprecated setting is for backward compatibility with CMake1.4
 
     SET (OPENGL_LIBRARY ${OPENGL_LIBRARIES})
-    SET (OPENGL_INCLUDE_PATH ${OPENGL_INCLUDE_DIR})
 
   ENDIF(OPENGL_gl_LIBRARY)
 
+  # This deprecated setting is for backward compatibility with CMake1.4
+
   SET(OPENGL_INCLUDE_PATH ${OPENGL_INCLUDE_DIR})
 
 ENDIF(OPENGL_INCLUDE_DIR)