aboutsummaryrefslogtreecommitdiff
path: root/ports/charls/0001_cmake.patch
blob: 7f50a98e60298a8245ccd4ad23307d0b1ccff792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1aa40a8..1051997 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,7 @@ option (BUILD_TESTING     "Build tests"                         ON)
 if (WIN32)
    if (BUILD_SHARED_LIBS)
      add_definitions(-D CHARLS_DLL)
+     set_source_files_properties(src/interface.cpp PROPERTIES COMPILE_FLAGS -DCHARLS_DLL_BUILD)
    else()
      add_definitions(-D CHARLS_STATIC)
    endif()