Link with SDL2_LIBDIR if necessary

This commit is contained in:
Jeffrey Pfau 2014-07-08 23:02:30 -07:00
parent f1b4e7039f
commit 3ee3f7625f
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ if (SDL_VERSION EQUAL "2")
set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS})
set(SDL_LIBRARY ${SDL2_LIBRARIES})
set(SDLMAIN_LIBRARY "")
link_directories(${SDL2_LIBDIR})
endif()
endif()