diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 76135a920..3e7065c67 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -3,7 +3,7 @@ link_libraries(glfw ${OPENGL_glu_LIBRARY}) if (BUILD_SHARED_LIBS) add_definitions(-DGLFW_DLL) - link_libraries(${OPENGL_gl_LIBRARY}) + link_libraries(${OPENGL_gl_LIBRARY} ${MATH_LIBRARY}) else() link_libraries(${glfw_LIBRARIES}) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9f2afa9fd..c4db1a57f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,7 +3,7 @@ link_libraries(glfw ${OPENGL_glu_LIBRARY}) if (BUILD_SHARED_LIBS) add_definitions(-DGLFW_DLL) - link_libraries(${OPENGL_gl_LIBRARY}) + link_libraries(${OPENGL_gl_LIBRARY} ${MATH_LIBRARY}) else() link_libraries(${glfw_LIBRARIES}) endif()