mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-10 14:51:58 +00:00
on windows use 64 bit sdl if the build is such
This commit is contained in:
parent
050376992c
commit
59cb50132b
1 changed files with 13 additions and 5 deletions
|
@ -168,11 +168,19 @@ if(WIN32)
|
|||
#-----------------------------------------------------------------
|
||||
if(BUNDLED_SDL) # DLL
|
||||
add_custom_target(bundled_sdl) # Dummy target just so cmake does not print warnings
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.dll DESTINATION ${CMAKE_BINARY_DIR})
|
||||
set(SDL32_BUNDLED_LIBRARIES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.lib"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2main.lib")
|
||||
set(SDL32_BUNDLED_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/sdl2/include")
|
||||
if(WIN64)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2.dll DESTINATION ${CMAKE_BINARY_DIR})
|
||||
set(SDL32_BUNDLED_LIBRARIES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2.lib"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2main.lib")
|
||||
set(SDL32_BUNDLED_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/sdl2/include")
|
||||
else(WIN64)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.dll DESTINATION ${CMAKE_BINARY_DIR})
|
||||
set(SDL32_BUNDLED_LIBRARIES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.lib"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2main.lib")
|
||||
set(SDL32_BUNDLED_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/sdl2/include")
|
||||
endif(WIN64)
|
||||
endif(BUNDLED_SDL)
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue