From 425ecbd3e612933dbc92ff0ea88d05a26b68a17a Mon Sep 17 00:00:00 2001 From: Max Argus Date: Thu, 19 Jul 2018 09:58:55 +0200 Subject: [PATCH] fix cmake, linux only (patch egl) --- CMakeLists.txt | 11 ++++++----- examples/OpenGLWindow/CMakeLists.txt | 3 --- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73e648e59..68e0a93bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,11 +369,12 @@ IF(BUILD_PYBULLET) ENDIF(BUILD_PYBULLET) -OPTION(BUILD_EGL "Build OpenGL/EGL" ON) -IF(BUILD_EGL) - ADD_DEFINITIONS(-DBT_USE_EGL) -ENDIF(BUILD_EGL) - +IF(NOT WIN32 AND NOT APPLE) + OPTION(BUILD_EGL "Build OpenGL/EGL" ON) + IF(BUILD_EGL) + ADD_DEFINITIONS(-DBT_USE_EGL) + ENDIF(BUILD_EGL) +ENDIF() IF(BUILD_BULLET3) IF(APPLE) diff --git a/examples/OpenGLWindow/CMakeLists.txt b/examples/OpenGLWindow/CMakeLists.txt index 5ca71e1c8..35ea9ff3b 100644 --- a/examples/OpenGLWindow/CMakeLists.txt +++ b/examples/OpenGLWindow/CMakeLists.txt @@ -49,9 +49,6 @@ ENDIF() IF(BUILD_EGL) SET(OpenGLWindow_SRCS ${OpenGLWindow_SRCS} ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/glad/egl.c) - IF(APPLE) - ADD_DEFINITIONS(-D__APPLE__) - ENDIF(APPLE) ENDIF(BUILD_EGL)