Skip to content

Commit

Permalink
Fix overzealous removal of if statements breaking all builds except w…
Browse files Browse the repository at this point in the history
…in32

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Nov 7, 2019
1 parent 4426653 commit cf8b35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PyIlmBase/config/ModuleDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
target_compile_definitions(${libname} PUBLIC OPENEXR_DLL)

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

0 comments on commit cf8b35c

Please sign in to comment.