Skip to content

Commit

Permalink
[libsquish] Fix usage (#26367)
Browse files Browse the repository at this point in the history
* [libsquish] Fix usage

* version
  • Loading branch information
JackBoosY authored Aug 16, 2022
1 parent c175d8e commit 84ba8a5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
13 changes: 11 additions & 2 deletions ports/libsquish/export-target.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3ecdde..94c7b3d 100644
index a3ecdde..6aa9e64 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,8 +120,14 @@ INCLUDE(GNUInstallDirs)
@@ -75,6 +75,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

ADD_LIBRARY(squish ${SQUISH_SRCS} ${SQUISH_HDRS})

+TARGET_INCLUDE_DIRECTORIES(squish PUBLIC $<INSTALL_INTERFACE:include>)
+
INCLUDE(GenerateExportHeader)
GENERATE_EXPORT_HEADER(squish
EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/squish_export.h
@@ -120,8 +122,14 @@ INCLUDE(GNUInstallDirs)

INSTALL(
TARGETS squish
Expand Down
2 changes: 1 addition & 1 deletion ports/libsquish/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libsquish",
"version": "1.15",
"port-version": 11,
"port-version": 12,
"description": "Open source DXT compression library.",
"homepage": "https://sourceforge.net/projects/libsquish",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4114,7 +4114,7 @@
},
"libsquish": {
"baseline": "1.15",
"port-version": 11
"port-version": 12
},
"libsrt": {
"baseline": "1.5.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libsquish.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6a7a36071f8261b00c8720cbf8024df31c15650f",
"version": "1.15",
"port-version": 12
},
{
"git-tree": "3c259e069413fc51d82423f6c9842ad285e210e9",
"version": "1.15",
Expand Down

0 comments on commit 84ba8a5

Please sign in to comment.