Skip to content

Commit f15e4f5

Browse files
chore(ext): update compressonator cmake
1 parent af55ca3 commit f15e4f5

25 files changed

+5
-3
lines changed

ext/compressonator/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
set(COMPRESSONATOR_DIR ${CMAKE_CURRENT_LIST_DIR} CACHE INTERNAL "")
1+
include_guard(GLOBAL)
2+
3+
set(COMPRESSONATOR_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
24

35
function(target_link_compressonator TARGET)
46
if(WIN32)
@@ -20,8 +22,8 @@ function(target_link_compressonator TARGET)
2022
endif()
2123
elseif(APPLE)
2224
target_link_libraries(${TARGET} PRIVATE
23-
"${COMPRESSONATOR_DIR}/lib/macOS/libCompressonator$<$<CONFIG:Debug>:d>.a"
24-
"${COMPRESSONATOR_DIR}/lib/macOS/libCMP_Core$<$<CONFIG:Debug>:d>.a")
25+
"${COMPRESSONATOR_DIR}/lib/macOS_arm64/libCompressonator$<$<CONFIG:Debug>:d>.a"
26+
"${COMPRESSONATOR_DIR}/lib/macOS_arm64/libCMP_Core$<$<CONFIG:Debug>:d>.a")
2527
elseif(UNIX)
2628
target_link_libraries(${TARGET} PRIVATE
2729
"${COMPRESSONATOR_DIR}/lib/linux_x86_64/libCompressonator$<$<CONFIG:Debug>:d>.a"
1.03 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
420 Bytes
Binary file not shown.
424 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)