aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-03-13 22:19:40 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-03-13 22:19:40 +0000
commit0f0543fd1b27cc07c3bb06d47763e3e1007adc3c (patch)
treeed7949a18a070de0ed1f7c6f4e5d1ccfe07ad338 /CMakeLists.txt
parenta46710f39f55cc81905caf1b48803f66a2d8eb97 (diff)
downloadpiglit-0f0543fd1b27cc07c3bb06d47763e3e1007adc3c.tar.gz
Portability build fixes for MinGW.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4336233..df1ee9c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,11 @@ IF (C_COMPILER_FLAG_WALL)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
ENDIF (C_COMPILER_FLAG_WALL)
+if (WIN32)
+ # MSVC & MinGW only define & use APIENTRY
+ add_definitions (-DGLAPIENTRY=__stdcall)
+endif (WIN32)
+
if (APPLE)
find_path(GLEXT_INCLUDE_DIR
NAMES OpenGL/glext.h