vcpkg/ports/charls/0001_cmake.patch
Christophe Guébert b65005b241 Add CharLS.
2016-12-07 12:30:12 +01:00

13 lines
439 B
Diff

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()