Skip to content

Commit

Permalink
Fix a few CMake image/ttf mixups
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstarkov authored and madebr committed Mar 11, 2024
1 parent 00024d2 commit 8edfa3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VisualC/pkg-support/cmake/sdl2_ttf-config.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SDL2_image CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL2_image-devel-2.x.y-VC
# SDL2_ttf CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL2_ttf-devel-2.x.y-VC

include(FeatureSummary)
set_package_properties(SDL2_ttf PROPERTIES
Expand All @@ -22,7 +22,7 @@ elseif(CMAKE_SIZEOF_VOID_P STREQUAL "8")
set(_sdl_arch_subdir "x64")
else()
unset(_sdl_arch_subdir)
set(SDL2_image_FOUND FALSE)
set(SDL2_ttf_FOUND FALSE)
return()
endif()

Expand All @@ -31,7 +31,7 @@ set(_sdl2ttf_library "${CMAKE_CURRENT_LIST_DIR}/../lib/${_sdl_arch_subdir}/
set(_sdl2ttf_dll "${CMAKE_CURRENT_LIST_DIR}/../lib/${_sdl_arch_subdir}/SDL2_ttf.dll")

# All targets are created, even when some might not be requested though COMPONENTS.
# This is done for compatibility with CMake generated SDL2_image-target.cmake files.
# This is done for compatibility with CMake generated SDL2_ttf-target.cmake files.

if(NOT TARGET SDL2_ttf::SDL2_ttf)
add_library(SDL2_ttf::SDL2_ttf SHARED IMPORTED)
Expand Down

0 comments on commit 8edfa3f

Please sign in to comment.