Преглед изворни кода

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}