From d71651db7ed217266d2e2ba354f79d048c43c22f Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 21 Nov 2017 13:38:57 +0100 Subject: [PATCH] Explicitly link libprojectm renderer to GLEW --- 3rdparty/libprojectm/CMakeLists.txt | 2 ++ 3rdparty/libprojectm/Renderer/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/3rdparty/libprojectm/CMakeLists.txt b/3rdparty/libprojectm/CMakeLists.txt index 0ef785c49..06dc999ca 100644 --- a/3rdparty/libprojectm/CMakeLists.txt +++ b/3rdparty/libprojectm/CMakeLists.txt @@ -26,6 +26,8 @@ set(DISABLE_MILKDROP_PRESETS OFF) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98") +pkg_check_modules(GLEW glew) + if(DISABLE_NATIVE_PRESETS) ADD_DEFINITIONS(-DDISABLE_NATIVE_PRESETS) endif(DISABLE_NATIVE_PRESETS) diff --git a/3rdparty/libprojectm/Renderer/CMakeLists.txt b/3rdparty/libprojectm/Renderer/CMakeLists.txt index a82514957..c9b9c137a 100644 --- a/3rdparty/libprojectm/Renderer/CMakeLists.txt +++ b/3rdparty/libprojectm/Renderer/CMakeLists.txt @@ -22,6 +22,6 @@ FIND_PACKAGE(X11) INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${X11_INCLUDE_DIR}) ADD_LIBRARY(Renderer STATIC ${Renderer_SOURCES}) SET_TARGET_PROPERTIES(Renderer PROPERTIES VERSION 2.00 SOVERSION 2) -TARGET_LINK_LIBRARIES(Renderer ${MATH_LIBRARIES} projectM) +TARGET_LINK_LIBRARIES(Renderer ${MATH_LIBRARIES} ${GLEW_LIBRARIES} projectM) set_target_properties(Renderer PROPERTIES COMPILE_FLAGS "-Wno-parentheses")