Fix overzealous removal of if statements breaking all builds except win32
@@ -27,8 +27,9 @@ function(PYILMBASE_ADD_LIBRARY_PRIV libname)
if(PYILMBASE_CURLIB_PRIV_EXPORT)
target_compile_definitions(${libname} PRIVATE ${PYILMBASE_CURLIB_PRIV_EXPORT})
endif()
+ if(WIN32)
target_compile_definitions(${libname} PUBLIC OPENEXR_DLL)
-
+ endif()
if(PYILMBASE_CURLIB_CURDIR)
target_include_directories(${libname} PUBLIC $<BUILD_INTERFACE:${PYILMBASE_CURLIB_CURDIR}>)
endif()
