Skip to content

Commit

Permalink
OpenEXR: Adding suffix to output name to avoid DLL collisions on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rtabbara authored and njroussel committed Oct 6, 2023
1 parent 2f39ac7 commit 9cc3bf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ set_property(TARGET
IexMath IlmThread Half Iex Imath IlmImf IexMath
PROPERTY PUBLIC_HEADER "")

foreach(X IN LISTS IexMath IlmThread Half Iex Imath IlmImf IexMath IlmImfUtil)
set_property(TARGET ${X} PROPERTY OUTPUT_NAME "${X}-mitsuba")
endforeach()

set(OPENEXR_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/openexr/IlmBase/Imath
${CMAKE_CURRENT_SOURCE_DIR}/openexr/IlmBase/Imath
Expand Down

0 comments on commit 9cc3bf4

Please sign in to comment.