Skip to content

Commit

Permalink
fix: Compressonator failing on linux while targeting windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ENDERZOMBI102 authored and craftablescience committed Aug 1, 2024
1 parent 3d06d8e commit b863d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/compressonator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set(COMPRESSONATOR_DIR ${CMAKE_CURRENT_LIST_DIR} CACHE INTERNAL "")

function(target_link_compressonator TARGET)
if(MSVC)
if(WIN32)
get_target_property(TARGET_MSVC_RUNTIME_LIBRARY ${TARGET} MSVC_RUNTIME_LIBRARY)
if((TARGET_MSVC_RUNTIME_LIBRARY MATCHES "NOTFOUND$") OR (TARGET_MSVC_RUNTIME_LIBRARY MATCHES "DLL$"))
target_link_libraries(${TARGET} PRIVATE
Expand Down

0 comments on commit b863d5d

Please sign in to comment.