diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-05-23 16:34:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-23 16:34:24 -0700 |
| commit | 627ba0dbf0a82ac827f0a350770489d15d2e276a (patch) | |
| tree | d90097ffeebb223719838aa1f04760a5ce2b1d0a | |
| parent | 537908f9b5580e42a2a1660d71f3d208cd1f904a (diff) | |
| parent | 7dd5c7abfc0b0ee7de3620ad3739bbffa4018d41 (diff) | |
| download | vcpkg-627ba0dbf0a82ac827f0a350770489d15d2e276a.tar.gz vcpkg-627ba0dbf0a82ac827f0a350770489d15d2e276a.zip | |
Merge pull request #3564 from amaiorano/fix-sdl2-net-linux
Fix build of sdl2-net for linux
| -rw-r--r-- | ports/sdl2-net/CMakeLists.txt | 4 |
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) |
