aboutsummaryrefslogtreecommitdiffstats
path: root/testing/widelands/45249a2c7172fdc2d5cd856a1ee05670f21f0db7.patch
blob: bd949392ccaa6c5b81b17fdb130144fd1fa1d341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 45249a2c7172fdc2d5cd856a1ee05670f21f0db7 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 b59171f112..acb5f2c1d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -182,7 +182,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()