Skip to content

Commit

Permalink
Merge pull request #3564 from amaiorano/fix-sdl2-net-linux
Browse files Browse the repository at this point in the history
Fix build of sdl2-net for linux
  • Loading branch information
alexkaratarakis authored May 23, 2018
2 parents 537908f + 7dd5c7a commit 627ba0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/sdl2-net/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.0)
project(SDL2_NET C)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244 /wd4996")
if (MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244 /wd4996")
endif()

find_path(SDL_INCLUDE_DIR SDL2/SDL.h)
find_library(SDL_LIBRARY NAMES SDL2d SDL2)
Expand Down

0 comments on commit 627ba0d

Please sign in to comment.