Fix SDL2 compilation when path contains a space
https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/fix-space-in-path.patch Hope this gets fixed upstream. This is a dumb bug.
This commit is contained in:
parent
1c0c88074e
commit
f0d1706907
2 changed files with 2 additions and 2 deletions
2
external/SDL2/CMakeLists.txt
vendored
2
external/SDL2/CMakeLists.txt
vendored
|
@ -257,7 +257,7 @@ add_definitions(-DUSING_GENERATED_CONFIG_H)
|
||||||
# General includes
|
# General includes
|
||||||
include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
|
include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
|
||||||
if(USE_GCC OR USE_CLANG)
|
if(USE_GCC OR USE_CLANG)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter \"${SDL2_SOURCE_DIR}/src/video/khronos\"")
|
||||||
else()
|
else()
|
||||||
include_directories(${SDL2_SOURCE_DIR}/src/video/khronos)
|
include_directories(${SDL2_SOURCE_DIR}/src/video/khronos)
|
||||||
endif()
|
endif()
|
||||||
|
|
2
external/SDL2/cmake/sdlchecks.cmake
vendored
2
external/SDL2/cmake/sdlchecks.cmake
vendored
|
@ -1086,7 +1086,7 @@ macro(CheckHIDAPI)
|
||||||
set(HAVE_SDL_JOYSTICK TRUE)
|
set(HAVE_SDL_JOYSTICK TRUE)
|
||||||
file(GLOB HIDAPI_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/hidapi/*.c)
|
file(GLOB HIDAPI_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/hidapi/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${HIDAPI_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${HIDAPI_SOURCES})
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUSB_CFLAGS} -I${SDL2_SOURCE_DIR}/src/hidapi/hidapi")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUSB_CFLAGS} \"-I${SDL2_SOURCE_DIR}/src/hidapi/hidapi\"")
|
||||||
if(NOT HIDAPI_SKIP_LIBUSB)
|
if(NOT HIDAPI_SKIP_LIBUSB)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${SDL2_SOURCE_DIR}/src/hidapi/libusb/hid.c)
|
set(SOURCE_FILES ${SOURCE_FILES} ${SDL2_SOURCE_DIR}/src/hidapi/libusb/hid.c)
|
||||||
list(APPEND EXTRA_LIBS ${LIBUSB_LIBS})
|
list(APPEND EXTRA_LIBS ${LIBUSB_LIBS})
|
||||||
|
|
Loading…
Add table
Reference in a new issue