From 97711e99fec602d6526b086d791e86d6d684cda4 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 15 Jun 2022 18:57:13 +0200
Subject: [PATCH] cmake: no need to explicitly add a depency
(target_link_libraries does this implicitly)
---
test/CMakeLists.txt | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 4cdb237b18e..62241fb8449 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -253,10 +253,8 @@ if(SDL_DUMMYVIDEO)
endif()
if(OPENGL_FOUND)
-add_dependencies(testshader OpenGL::GL)
-add_dependencies(testgl2 OpenGL::GL)
-target_link_libraries(testshader OpenGL::GL)
-target_link_libraries(testgl2 OpenGL::GL)
+ target_link_libraries(testshader OpenGL::GL)
+ target_link_libraries(testgl2 OpenGL::GL)
endif()
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)