aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/sdl2-net/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/sdl2-net/CMakeLists.txt b/ports/sdl2-net/CMakeLists.txt
index aea5f005e..5ee86e9bd 100644
--- a/ports/sdl2-net/CMakeLists.txt
+++ b/ports/sdl2-net/CMakeLists.txt
@@ -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)