games-strategy/widelands: Fixed build with media-libs/libglvnd
[gentoo.git] / games-strategy / widelands / files / widelands-0.20-glvnd.patch
1 From 4661768699c4651df1668fbfe0e24bb02bf10db1 Mon Sep 17 00:00:00 2001
2 From: franku <somal@arcor.de>
3 Date: Thu, 18 Jul 2019 19:30:34 +0200
4 Subject: [PATCH] use link_libraries instead of set(CMAKE_EXE_LINKER_FLAGS...
5
6 ---
7  CMakeLists.txt | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index 5c5ca8a60b..bcff2db2ff 100644
12 --- a/CMakeLists.txt
13 +++ b/CMakeLists.txt
14 @@ -181,7 +181,7 @@ endif(OPTION_ASAN)
15  
16  # This is set to avoid linker errors when using GLVND-libs on Linux
17  if("${OpenGL_GL_PREFERENCE}" STREQUAL "GLVND")
18 -   set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGL")
19 +   link_libraries("GL")
20     add_compile_definitions(WL_USE_GLVND)
21     message(STATUS "Adding linker flags for GLVND.")
22  endif()
23 -- 
24 2.25.1
25