diff options
| author | Antonio Maiorano <amaiorano@gmail.com> | 2019-05-01 16:36:57 -0400 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-05-01 13:36:57 -0700 |
| commit | df753fbcf502574e182e302607d5db0fe9188cfd (patch) | |
| tree | 05070df9d343992718f80836638b42b7a1b2dc11 /ports/sdl2-ttf | |
| parent | 3468013fcd4014ab7a40b2b5355e86cbe4cbcf07 (diff) | |
| download | vcpkg-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-ttf')
| -rw-r--r-- | ports/sdl2-ttf/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | ports/sdl2-ttf/CONTROL | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ports/sdl2-ttf/CMakeLists.txt b/ports/sdl2-ttf/CMakeLists.txt index 94e14e391..8d34a413a 100644 --- a/ports/sdl2-ttf/CMakeLists.txt +++ b/ports/sdl2-ttf/CMakeLists.txt @@ -2,14 +2,14 @@ cmake_minimum_required(VERSION 3.0) project(SDL2_TTF C) find_path(SDL_INCLUDE_DIR SDL2/SDL.h) -find_library(SDL_LIBRARY NAMES SDL2d SDL2) +find_package(SDL2 CONFIG REQUIRED) find_package(Freetype REQUIRED) add_library(SDL2_ttf SDL_ttf.c version.rc) set_target_properties(SDL2_ttf PROPERTIES DEFINE_SYMBOL SDL2_EXPORTS) target_include_directories(SDL2_ttf PRIVATE ${SDL_INCLUDE_DIR}/SDL2 ${FREETYPE_INCLUDE_DIRS}) -target_link_libraries(SDL2_ttf ${SDL_LIBRARY} ${FREETYPE_LIBRARIES}) +target_link_libraries(SDL2_ttf SDL2::SDL2 ${FREETYPE_LIBRARIES}) install(TARGETS SDL2_ttf EXPORT SDL2_ttf @@ -28,5 +28,5 @@ if(NOT DEFINED SDL_TTF_SKIP_HEADERS) endif() message(STATUS "Link-time dependencies:") -message(STATUS " " ${SDL_LIBRARY}) +message(STATUS " " SDL2::SDL2) message(STATUS " " ${FREETYPE_LIBRARIES}) diff --git a/ports/sdl2-ttf/CONTROL b/ports/sdl2-ttf/CONTROL index d2c77ea42..22598164e 100644 --- a/ports/sdl2-ttf/CONTROL +++ b/ports/sdl2-ttf/CONTROL @@ -1,4 +1,4 @@ Source: sdl2-ttf -Version: 2.0.15-1 +Version: 2.0.15-2 Description: A library for rendering TrueType fonts with SDL Build-Depends: sdl2, freetype |
