Update FindOrBuild.cmake

This commit is contained in:
Xawotihs
2015-11-17 23:16:51 +01:00
parent 995922d2d7
commit 878b2cd639

View File

@@ -34,7 +34,7 @@ macro(FindOrBuildSDL2)
endif()
add_subdirectory(${CMAKE_SOURCE_DIR}/thirdparty/SDL2)
set(SDL2_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/SDL2/include ${CMAKE_BINARY_DIR}/thirdparty/SDL2)
if(EMSCRIPTEN OR WIN32)
if(EMSCRIPTEN)
set(SDL2_LIBRARY SDL2-static)
else()
set(SDL2_LIBRARY SDL2)