2022-07-29 13:19:42 +08:00
|
|
|
diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
|
2023-08-22 05:52:49 +08:00
|
|
|
index 0ca1fe6..1eeb5ab 100644
|
2022-07-29 13:19:42 +08:00
|
|
|
--- a/src/cmake/externalpackages.cmake
|
|
|
|
+++ b/src/cmake/externalpackages.cmake
|
2023-08-22 05:52:49 +08:00
|
|
|
@@ -105,7 +105,7 @@ checked_find_package (OpenEXR REQUIRED
|
2022-12-14 11:15:34 +08:00
|
|
|
# building against Imath/OpenEXR 3.x when there is still a system-level
|
|
|
|
# install version of 2.x.
|
|
|
|
include_directories(BEFORE ${IMATH_INCLUDES} ${OPENEXR_INCLUDES})
|
2022-07-29 13:19:42 +08:00
|
|
|
-if (MSVC AND NOT LINKSTATIC)
|
|
|
|
+if (WIN32 AND BUILD_SHARED_LIBS)
|
|
|
|
add_definitions (-DOPENEXR_DLL) # Is this needed for new versions?
|
|
|
|
endif ()
|
2023-08-22 05:52:49 +08:00
|
|
|
if (OpenEXR_VERSION VERSION_GREATER_EQUAL 3.0)
|