1
0
Fork 0

Fix: [CMake] Skip detection for unused libs for dedicated builds

pull/8804/head
glx22 2021-03-03 19:48:32 +01:00 committed by Loïc Guilloux
parent db0993f500
commit 1d79f55a46
1 changed files with 21 additions and 18 deletions

View File

@ -119,7 +119,8 @@ find_package(LibLZMA)
find_package(LZO) find_package(LZO)
find_package(PNG) find_package(PNG)
if(NOT WIN32) if(NOT OPTION_DEDICATED)
if(NOT WIN32)
find_package(Allegro) find_package(Allegro)
if(NOT APPLE) if(NOT APPLE)
find_package(Freetype) find_package(Freetype)
@ -130,17 +131,19 @@ if(NOT WIN32)
find_package(Fluidsynth) find_package(Fluidsynth)
find_package(Fontconfig) find_package(Fontconfig)
find_package(ICU OPTIONAL_COMPONENTS i18n lx) find_package(ICU OPTIONAL_COMPONENTS i18n lx)
else() endif()
endif()
endif()
if(APPLE)
find_package(Iconv) find_package(Iconv)
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox) find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
find_library(AUDIOUNIT_LIBRARY AudioUnit) find_library(AUDIOUNIT_LIBRARY AudioUnit)
find_library(COCOA_LIBRARY Cocoa) find_library(COCOA_LIBRARY Cocoa)
find_library(QUARTZCORE_LIBRARY QuartzCore) find_library(QUARTZCORE_LIBRARY QuartzCore)
endif()
endif() endif()
if(NOT EMSCRIPTEN) if(NOT EMSCRIPTEN AND NOT OPTION_DEDICATED)
find_package(OpenGL COMPONENTS OpenGL) find_package(OpenGL COMPONENTS OpenGL)
endif() endif()