windows-amd64-prebuilt-libr.../vcpkg/ports/openimageio/fix_static_build.patch
2020-10-10 14:36:42 +02:00

14 lines
493 B
Diff

diff --git a/src/cmake/compiler.cmake b/src/cmake/compiler.cmake
index 1468be3..ed4167a 100644
--- a/src/cmake/compiler.cmake
+++ b/src/cmake/compiler.cmake
@@ -482,7 +482,7 @@ set (EXTRA_DSO_LINK_ARGS "" CACHE STRING "Extra command line definitions when bu
#
option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON)
if (NOT BUILD_SHARED_LIBS)
- add_definitions (-D${PROJ_NAME}_STATIC_DEFINE=1)
+ add_definitions (-DOIIO_STATIC_DEFINE=1)
endif ()