Skip to content

Commit

Permalink
Corrected 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 b8ba042 commit 4f82ac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VisualC/pkg-support/cmake/sdl3_ttf-config.cmake
@@ -1,5 +1,5 @@
# SDL3_image CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL3_image-devel-3.x.y-VC
# SDL3_ttf CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL3_ttf-devel-3.x.y-VC

include(FeatureSummary)
set_package_properties(SDL3_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(SDL3_image_FOUND FALSE)
set(SDL3_ttf_FOUND FALSE)
return()
endif()

Expand All @@ -31,7 +31,7 @@ set(_sdl3ttf_library "${CMAKE_CURRENT_LIST_DIR}/../lib/${_sdl_arch_subdir}/
set(_sdl3ttf_dll "${CMAKE_CURRENT_LIST_DIR}/../lib/${_sdl_arch_subdir}/SDL3_ttf.dll")

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

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

0 comments on commit 4f82ac7

Please sign in to comment.