summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-04-27 11:57:29 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2016-05-07 12:32:48 +0200
commit920d2cf41d9366a597bbd30d1dea5ba1884b3800 (patch)
treeca4d930691a4f10b2c6aea5be078b41bdfe76c3e /CMakeLists.txt
parentMerge pull request #1729 from MerryMage/null-sink (diff)
downloadyuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.gz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.bz2
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.lz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.xz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.zst
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d628ecc50..8f2898973 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,12 +152,15 @@ if (ENABLE_SDL2)
download_bundled_external("sdl2/" ${SDL2_VER} SDL2_PREFIX)
endif()
+ set(SDL2_FOUND YES)
set(SDL2_INCLUDE_DIR "${SDL2_PREFIX}/include" CACHE PATH "Path to SDL2 headers")
set(SDL2_LIBRARY "${SDL2_PREFIX}/lib/x64/SDL2.lib" CACHE PATH "Path to SDL2 library")
set(SDL2_DLL_DIR "${SDL2_PREFIX}/lib/x64/" CACHE PATH "Path to SDL2.dll")
else()
find_package(SDL2 REQUIRED)
endif()
+else()
+ set(SDL2_FOUND NO)
endif()
IF (APPLE)