diff -Naur charls-2.2.0_orig/src/CMakeLists.txt charls-2.2.0/src/CMakeLists.txt
--- charls-2.2.0_orig/src/CMakeLists.txt	2021-01-10 19:07:25.000000000 +0100
+++ charls-2.2.0/src/CMakeLists.txt	2021-01-12 13:42:49.319362300 +0100
@@ -12,7 +12,7 @@
   target_compile_definitions(charls PUBLIC CHARLS_STATIC)
 endif()
 
-if(WIN32 AND BUILD_SHARED_LIBS)
+if(MSVC AND BUILD_SHARED_LIBS)
   if(CMAKE_SIZEOF_VOID_P EQUAL 8)
     set_target_properties(charls PROPERTIES OUTPUT_NAME "charls-2-x64")
   else()
