summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Goretkin <gustavo.goretkin@gmail.com>2019-05-03 15:48:16 -0400
committerGustavo Goretkin <gustavo.goretkin@gmail.com>2019-05-03 15:48:16 -0400
commitcde9be4697cee95c26a2d3049785f7daeb5ffe65 (patch)
tree4f15b2ff1566b0f5c00b417aaefc7ff067c87491
parent42d3e6190a3693ad69586999c9b3346308ac06fc (diff)
downloadbullet3-cde9be4697cee95c26a2d3049785f7daeb5ffe65.tar.gz
Always link against OpenGL
-rw-r--r--examples/c_api/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/c_api/CMakeLists.txt b/examples/c_api/CMakeLists.txt
index c6790a1a3..b50c3c40d 100644
--- a/examples/c_api/CMakeLists.txt
+++ b/examples/c_api/CMakeLists.txt
@@ -98,7 +98,6 @@ IF(BUILD_PYBULLET_CLSOCKET)
ENDIF(BUILD_PYBULLET_CLSOCKET)
IF(WIN32)
- LINK_LIBRARIES(${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
IF(BUILD_PYBULLET_ENET)
ADD_DEFINITIONS(-DWIN32 -DBT_ENABLE_ENET)
ENDIF(BUILD_PYBULLET_ENET)
@@ -183,6 +182,8 @@ TARGET_LINK_LIBRARIES(
Bullet3Common
)
+TARGET_LINK_LIBRARIES(bullet_c_api ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
+
IF (INSTALL_LIBS)
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
#INSTALL of other files requires CMake 2.6