mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 01:19:08 +08:00
b50c57fca2
* Add libjxl port * Update CI baseline * Simplify cleanup * Switch to semver * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com>
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
diff --git a/lib/jxl.cmake b/lib/jxl.cmake
|
|
--- a/lib/jxl.cmake
|
|
+++ b/lib/jxl.cmake
|
|
@@ -487,8 +487,8 @@ if (NOT WIN32)
|
|
set_target_properties(jxl-static PROPERTIES OUTPUT_NAME "jxl")
|
|
set_target_properties(jxl_dec-static PROPERTIES OUTPUT_NAME "jxl_dec")
|
|
endif()
|
|
-install(TARGETS jxl-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
-install(TARGETS jxl_dec-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
+install(TARGETS jxl-static)
|
|
+install(TARGETS jxl_dec-static)
|
|
|
|
if (((NOT DEFINED "${TARGET_SUPPORTS_SHARED_LIBS}") OR
|
|
TARGET_SUPPORTS_SHARED_LIBS) AND NOT JPEGXL_STATIC)
|
|
@@ -548,8 +548,7 @@ endforeach()
|
|
# Only install libjxl shared library. The libjxl_dec is not installed since it
|
|
# contains symbols also in libjxl which would conflict if programs try to use
|
|
# both.
|
|
-install(TARGETS jxl
|
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
+install(TARGETS jxl)
|
|
else()
|
|
add_library(jxl ALIAS jxl-static)
|
|
add_library(jxl_dec ALIAS jxl_dec-static)
|
|
diff --git a/lib/jxl_threads.cmake b/lib/jxl_threads.cmake
|
|
--- a/lib/jxl_threads.cmake
|
|
+++ b/lib/jxl_threads.cmake
|
|
@@ -43,7 +43,7 @@ set_target_properties(${_target} PROPERTIES
|
|
if (NOT WIN32)
|
|
set_target_properties(${_target} PROPERTIES OUTPUT_NAME "jxl_threads")
|
|
endif()
|
|
-install(TARGETS ${_target} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
+install(TARGETS ${_target})
|
|
|
|
endfunction()
|
|
|