Skip to content

Commit

Permalink
Update src/wrappers/python/CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm and JeanChristopheMorinPerso authored Feb 9, 2024
1 parent 8b8d982 commit a9ed487
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ set_target_properties (PyOpenEXR PROPERTIES OUTPUT_NAME "OpenEXR")

configure_file(Imath.py ${CMAKE_CURRENT_BINARY_DIR}/Imath.py COPYONLY)

install(TARGETS PyOpenEXR DESTINATION python/OpenEXR)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Imath.py DESTINATION python/OpenEXR)
set(PYTHON_INSTALL_DIR "python/OpenEXR")
if(SKBUILD)
set(PYTHON_INSTALL_DIR ${SKBUILD_PLATLIB_DIR})
endif()

install(TARGETS PyOpenEXR DESTINATION ${PYTHON_INSTALL_DIR})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Imath.py DESTINATION ${PYTHON_INSTALL_DIR})

if(BUILD_TESTING AND OPENEXR_TEST_PYTHON)

Expand Down

0 comments on commit a9ed487

Please sign in to comment.