浏览代码

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 年之前
父节点
当前提交
16540f0021
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libs/sdl/CMakeLists.txt

+ 2 - 2
libs/sdl/CMakeLists.txt

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