Skip to content

Commit ed3bb00

Browse files
LegalizeAdulthoodpkoning2
authored andcommitted
Use SDL2_ttf-static as a last chance
1 parent f934885 commit ed3bb00

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmake/dep-link.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ IF (WITH_VIDEO)
9090
target_link_libraries(simh_video INTERFACE ${SDL_ttf_LIBRARIES})
9191
target_include_directories(simh_video INTERFACE ${SDL_ttf_INCLUDE_DIRS})
9292
list(APPEND VIDEO_PKG_STATUS "detected SDL2_ttf")
93+
ELSEIF (TARGET SDL2_ttf::SDL2_ttf-static)
94+
target_link_libraries(simh_video INTERFACE SDL2_ttf::SDL2_ttf-static)
95+
list(APPEND VIDEO_PKG_STATUS "SDL2_ttf static")
9396
ELSE ()
9497
message(FATAL_ERROR "SDL2_ttf_FOUND set but no SDL2_ttf::SDL2_ttf import library or SDL_ttf_LIBRARIES/SDL_ttf_INCLUDE_DIRS? ")
9598
ENDIF ()

0 commit comments

Comments
 (0)