aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Maiorano <amaiorano@gmail.com>2018-05-22 23:55:25 -0400
committerAntonio Maiorano <amaiorano@gmail.com>2018-05-22 23:55:25 -0400
commit7dd5c7abfc0b0ee7de3620ad3739bbffa4018d41 (patch)
tree9efa82443a5c1add4ca374686c152bd71c5387b2
parent2a73e133448c14738271e8b0227c8b2eb4992ea3 (diff)
downloadvcpkg-7dd5c7abfc0b0ee7de3620ad3739bbffa4018d41.tar.gz
vcpkg-7dd5c7abfc0b0ee7de3620ad3739bbffa4018d41.zip
Fix build of sdl2-net for linux
-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)