summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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