all repos — mgba @ 21ea47ea9e24a181b460f5973d74a4bd29dcd939

mGBA Game Boy Advance Emulator

Fix SDL2 library exporting
Jeffrey Pfau jeffrey@endrift.com
Sun, 26 Oct 2014 02:04:24 -0700
commit

21ea47ea9e24a181b460f5973d74a4bd29dcd939

parent

8d002913f08689770574d120d4b27c21b6e8b03c

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/sdl/CMakeLists.txtsrc/platform/sdl/CMakeLists.txt

@@ -5,9 +5,9 @@ if (SDL_VERSION EQUAL "2")

include(FindPkgConfig) pkg_search_module(SDL2 sdl2) if (SDL2_FOUND) - set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS}) - set(SDL_LIBRARY ${SDL2_LIBRARIES}) - set(SDLMAIN_LIBRARY "") + set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS} CACHE INTERNAL "") + set(SDL_LIBRARY ${SDL2_LIBRARIES} CACHE INTERNAL "") + set(SDLMAIN_LIBRARY "" CACHE INTERNAL "") link_directories(${SDL2_LIBDIR}) endif() endif()