vcpkg/ports/sdl2-ttf/fix-pkgconfig.patch

23 lines
852 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a097d5c..ca2881f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -325,7 +333,7 @@ if(SDL2TTF_INSTALL)
COMPONENT devel
)
- if(SDL2TTF_BUILD_SHARED_LIBS)
+ if(1)
# Only create a .pc file for a shared SDL2_ttf
set(prefix "${CMAKE_INSTALL_PREFIX}")
set(exec_prefix "\${prefix}")
@@ -352,7 +360,7 @@ if(SDL2TTF_INSTALL)
\"${CMAKE_CURRENT_BINARY_DIR}/SDL2_ttf.pc\" ONLY_IF_DIFFERENT)
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${PC_DESTDIR}\"
TYPE FILE
- FILES \"${CMAKE_CURRENT_BINARY_DIR}/SDL2_ttf.pc\")" CONFIG Release)
+ FILES \"${CMAKE_CURRENT_BINARY_DIR}/SDL2_ttf.pc\")")
endif()
if(SDL2TTF_BUILD_SHARED_LIBS AND (APPLE OR (UNIX AND NOT ANDROID)))