summaryrefslogtreecommitdiffstats
path: root/externals
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-23 18:35:16 +0100
committerbunnei <bunneidev@gmail.com>2016-03-23 18:35:16 +0100
commit0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4 (patch)
tree084032f63c0e7ebc2a44ba94bf2b642fbaf273c4 /externals
parentMerge pull request #1508 from JayFoxRox/vs-output-map (diff)
parentfix SDL2 detection for Visual (diff)
downloadyuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar.gz
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar.bz2
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar.lz
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar.xz
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.tar.zst
yuzu-0a1c73e396f350ff7e70b46ac46ef06d1eb4a1c4.zip
Diffstat (limited to 'externals')
-rw-r--r--externals/cmake-modules/FindSDL2.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/externals/cmake-modules/FindSDL2.cmake b/externals/cmake-modules/FindSDL2.cmake
index 0af86840a..9b8daa0d1 100644
--- a/externals/cmake-modules/FindSDL2.cmake
+++ b/externals/cmake-modules/FindSDL2.cmake
@@ -134,11 +134,17 @@ SET(SDL2_SEARCH_PATHS
${SDL2_PATH}
)
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(VC_LIB_PATH_SUFFIX lib/x64)
+else()
+ set(VC_LIB_PATH_SUFFIX lib/x86)
+endif()
+
FIND_LIBRARY(SDL2_LIBRARY_TEMP
NAMES SDL2
HINTS
$ENV{SDL2DIR}
- PATH_SUFFIXES lib64 lib
+ PATH_SUFFIXES lib64 lib ${VC_LIB_PATH_SUFFIX}
PATHS ${SDL2_SEARCH_PATHS}
)