summaryrefslogtreecommitdiff
path: root/games-strategy/widelands/files/widelands-0.20-glvnd.patch
blob: 94d1aa3850c7313f2cbc32dc03ccc34b193b9812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 4661768699c4651df1668fbfe0e24bb02bf10db1 Mon Sep 17 00:00:00 2001
From: franku <somal@arcor.de>
Date: Thu, 18 Jul 2019 19:30:34 +0200
Subject: [PATCH] use link_libraries instead of set(CMAKE_EXE_LINKER_FLAGS...

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c5ca8a60b..bcff2db2ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,7 +181,7 @@ endif(OPTION_ASAN)
 
 # This is set to avoid linker errors when using GLVND-libs on Linux
 if("${OpenGL_GL_PREFERENCE}" STREQUAL "GLVND")
-   set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGL")
+   link_libraries("GL")
    add_compile_definitions(WL_USE_GLVND)
    message(STATUS "Adding linker flags for GLVND.")
 endif()
-- 
2.25.1