Browse Source

cmake: no need to explicitly add a depency (target_link_libraries does this implicitly)

Anonymous Maarten 3 years ago
parent
commit
97711e99fe
1 changed files with 2 additions and 4 deletions
  1. 2 4
      test/CMakeLists.txt

+ 2 - 4
test/CMakeLists.txt

@@ -253,10 +253,8 @@ if(SDL_DUMMYVIDEO)
 endif()
 endif()
 
 
 if(OPENGL_FOUND)
 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()
 endif()
 
 
 file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
 file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)