summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>2020-06-18 14:24:29 +0200
committerCharles Pigott <charlespigott@googlemail.com>2020-06-30 09:43:00 +0100
commit7fd7b515933b85a0b78da4e5e30db957f90aaec5 (patch)
treeab513fd8fbd0698b48d96205c8b3fb5a81802209
parente6be8be19d5b9b2b21175bad0d8bb22c64e596a4 (diff)
downloadopenttd-7fd7b515933b85a0b78da4e5e30db957f90aaec5.tar.xz
Fix: don't search for SDL, etc., on macOS
-rw-r--r--CMakeLists.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd2111e53..06cd71c3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,27 +32,27 @@ find_package(ZLIB)
find_package(LibLZMA)
find_package(LZO)
find_package(PNG)
+
if (NOT WIN32)
- find_package(SDL2)
- if (NOT SDL2_FOUND)
- find_package(SDL)
- endif( NOT SDL2_FOUND)
find_package(Allegro)
- find_package(Fluidsynth)
- find_package(Freetype)
- find_package(Fontconfig)
if (NOT APPLE)
+ find_package(SDL2)
+ if (NOT SDL2_FOUND)
+ find_package(SDL)
+ endif( NOT SDL2_FOUND)
+ find_package(Fluidsynth)
+ find_package(Freetype)
+ find_package(Fontconfig)
find_package(ICU OPTIONAL_COMPONENTS i18n lx)
+ find_package(XDG_basedir)
+ else (NOT APPLE)
+ find_package(Iconv)
+
+ find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
+ find_library(AUDIOUNIT_LIBRARY AudioUnit)
+ find_library(COCOA_LIBRARY Cocoa)
endif (NOT APPLE)
- find_package(XDG_basedir)
endif (NOT WIN32)
-if (APPLE)
- find_package(Iconv)
-
- find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
- find_library(AUDIOUNIT_LIBRARY AudioUnit)
- find_library(COCOA_LIBRARY Cocoa)
-endif (APPLE)
if (MSVC)
find_package(Editbin REQUIRED)