aboutsummaryrefslogtreecommitdiff
path: root/ports/sdl2-gfx
diff options
context:
space:
mode:
authorAntonio Maiorano <amaiorano@gmail.com>2019-05-01 16:36:57 -0400
committerCurtis J Bezault <curtbezault@gmail.com>2019-05-01 13:36:57 -0700
commitdf753fbcf502574e182e302607d5db0fe9188cfd (patch)
tree05070df9d343992718f80836638b42b7a1b2dc11 /ports/sdl2-gfx
parent3468013fcd4014ab7a40b2b5355e86cbe4cbcf07 (diff)
downloadvcpkg-df753fbcf502574e182e302607d5db0fe9188cfd.tar.gz
vcpkg-df753fbcf502574e182e302607d5db0fe9188cfd.zip
Fix sdl2-gfx, sdl2-image, sdl2-mixer, sdl2-net, and sdl2-ttf forcing debug lib first (SDL2d) (#5948)
Prevent SDL2 dependent libraries from always linking against debug.
Diffstat (limited to 'ports/sdl2-gfx')
-rw-r--r--ports/sdl2-gfx/CMakeLists.txt4
-rw-r--r--ports/sdl2-gfx/CONTROL2
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/sdl2-gfx/CMakeLists.txt b/ports/sdl2-gfx/CMakeLists.txt
index 6a0ecf24e..1a63d7f8b 100644
--- a/ports/sdl2-gfx/CMakeLists.txt
+++ b/ports/sdl2-gfx/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
project(SDL2_GFX C)
find_path(SDL_INCLUDE_DIR SDL2/SDL.h)
-find_library(SDL_LIBRARY NAMES SDL2d SDL2)
+find_package(SDL2 CONFIG REQUIRED)
# builtin formats
set(SDL_GFX_DEFINES WIN32)
@@ -18,7 +18,7 @@ add_library(SDL2_gfx
target_compile_definitions(SDL2_gfx PRIVATE ${SDL_GFX_DEFINES})
target_include_directories(SDL2_gfx PRIVATE ${SDL_INCLUDE_DIR}/SDL2)
-target_link_libraries(SDL2_gfx PRIVATE ${SDL_LIBRARY})
+target_link_libraries(SDL2_gfx PRIVATE SDL2::SDL2)
install(TARGETS SDL2_gfx
RUNTIME DESTINATION bin
diff --git a/ports/sdl2-gfx/CONTROL b/ports/sdl2-gfx/CONTROL
index 950afc00f..96a4d2776 100644
--- a/ports/sdl2-gfx/CONTROL
+++ b/ports/sdl2-gfx/CONTROL
@@ -1,4 +1,4 @@
Source: sdl2-gfx
-Version: 1.0.4
+Version: 1.0.4-1
Build-Depends: sdl2
Description: Graphics primitives (line, circle, rectangle etc.) with AA support, rotozoomer and other drawing related support functions wrapped up in a C based add-on library for the Simple Direct Media (SDL) cross-platform API layer.