[cmake] CheckOpenGL.cmake: Renamed GLEW_COMPILE_DEFINITIONS to GLEW_DEFINITIONS.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 00:52:06 +0000 (20:52 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 00:52:06 +0000 (20:52 -0400)
This matches the other libraries.

[gens-qt4] CMakeLists.txt: s/GLEW_COMPILE_DEFINITIONS/GLEW_DEFINITIONS/

cmake/libs/CheckOpenGL.cmake
src/gens-qt4/CMakeLists.txt

index 9e18259..7323583 100644 (file)
@@ -39,7 +39,7 @@ IF(OPENGL_LIBRARIES)
                        # Always use the internal copy of GLEW.
                        SET(HAVE_GLEW 1)
                        SET(GLEW_LIBRARY glew)
-                       SET(GLEW_COMPILE_DEFINITIONS -DGLEW_STATIC)
+                       SET(GLEW_DEFINITIONS -DGLEW_STATIC)
                        SET(GLEW_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/extlib/glew/include/")
                        SET(USE_INTERNAL_GLEW 1)
                        MESSAGE(STATUS "Using internal GLEW library.")
index 4f84d75..96bb728 100644 (file)
@@ -395,7 +395,7 @@ IF(QT_QTDBUS_FOUND)
 ENDIF(QT_QTDBUS_FOUND)
 IF(HAVE_GLEW)
        TARGET_LINK_LIBRARIES(gens-qt4 ${GLEW_LIBRARY})
-       ADD_DEFINITIONS(${GLEW_COMPILE_DEFINITIONS})
+       ADD_DEFINITIONS(${GLEW_DEFINITIONS})
 ENDIF(HAVE_GLEW)
 TARGET_LINK_LIBRARIES(gens-qt4 ${OPENGL_gl_LIBRARY})
 IF(HAVE_PORTAUDIO)