summaryrefslogtreecommitdiffstats
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-04-18 05:35:13 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-04-18 05:42:57 +0200
commitde69a5266fde93a793fc3664db205ec7bad3e9a9 (patch)
tree6d14faea4a91e9cd8e5a516712b677354a92a41b /externals/CMakeLists.txt
parentMerge pull request #6204 from lat9nq/sdl2-external (diff)
downloadyuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar.gz
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar.bz2
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar.lz
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar.xz
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.tar.zst
yuzu-de69a5266fde93a793fc3664db205ec7bad3e9a9.zip
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 6e4591b4e..e044d9730 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -46,8 +46,7 @@ add_library(unicorn-headers INTERFACE)
target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
# SDL2
-if (NOT SDL2_FOUND)
- set(SDL2_FOUND YES)
+if (NOT SDL2_FOUND AND ENABLE_SDL2)
add_subdirectory(SDL EXCLUDE_FROM_ALL)
endif()