mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Fix build of sdl2-net for linux
This commit is contained in:
parent
2a73e13344
commit
7dd5c7abfc
@ -1,7 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(SDL2_NET C)
|
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_path(SDL_INCLUDE_DIR SDL2/SDL.h)
|
||||||
find_library(SDL_LIBRARY NAMES SDL2d SDL2)
|
find_library(SDL_LIBRARY NAMES SDL2d SDL2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user