Browse Source

cmake: Link sdl.hdll with OpenGL

On openSUSE the packages are build with -Wl,--no-undefined and it would fail because of missing symbols
Jaime Marquínez Ferrándiz 3 years ago
parent
commit
16540f0021
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libs/sdl/CMakeLists.txt

+ 2 - 2
libs/sdl/CMakeLists.txt

@@ -25,8 +25,8 @@ if(WIN32)
     )
     )
 endif()
 endif()
 
 
-if(APPLE)
-    find_package(OPENGL REQUIRED)
+if(APPLE OR UNIX)
+    find_package(OpenGL REQUIRED)
     target_include_directories(sdl.hdll
     target_include_directories(sdl.hdll
         PRIVATE
         PRIVATE
         ${OPENGL_INCLUDE_DIR}
         ${OPENGL_INCLUDE_DIR}