aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-05-16 18:00:04 +1000
committerfuzzard <fuzzard@kodi.tv>2024-06-22 14:06:06 +1000
commitedc5e4387d14b4068c80440bfe3fc3761024e075 (patch)
tree659ae997f4339383d61527d5291ea411e61afe89 /tools
parentc0f36e41a5d9584eefabf9e775aed05235d22f44 (diff)
[cmake][modules] FindLzo2 cleanup and use core_target_link_libraries
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/TexturePacker/src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/depends/native/TexturePacker/src/CMakeLists.txt b/tools/depends/native/TexturePacker/src/CMakeLists.txt
index c8b0f76cb9..25b1be7a96 100644
--- a/tools/depends/native/TexturePacker/src/CMakeLists.txt
+++ b/tools/depends/native/TexturePacker/src/CMakeLists.txt
@@ -13,6 +13,8 @@ if(ENABLE_STATIC)
set(ZLIB_USE_STATIC_LIBS ON)
endif()
+set(APP_NAME_LC texturepacker)
+
find_package(Lzo2 REQUIRED)
find_package(PNG REQUIRED)
find_package(GIF REQUIRED)
@@ -68,7 +70,7 @@ target_link_libraries(TexturePacker
${GIF_LIBRARIES}
${PNG_LIBRARIES}
${JPEG_LIBRARIES}
- ${LZO2_LIBRARIES})
+ texturepacker::Lzo2)
target_compile_definitions(TexturePacker PRIVATE ${ARCH_DEFINES} ${SYSTEM_DEFINES})
target_compile_features(TexturePacker PUBLIC cxx_std_17)