Skip to content

Commit

Permalink
First step towards solving install
Browse files Browse the repository at this point in the history
  • Loading branch information
palemieux committed Jan 7, 2025
1 parent cd664a2 commit 77c7d07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
)

# install(EXPORT ${PROJECT_NAME}
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
# FILE ${PROJECT_NAME}Targets.cmake
# NAMESPACE ${PROJECT_NAME}::
# EXPORT_LINK_INTERFACE_LIBRARIES
# )
install(EXPORT ${PROJECT_NAME}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
FILE ${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAME}::
EXPORT_LINK_INTERFACE_LIBRARIES
)
endif()
8 changes: 6 additions & 2 deletions cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,15 @@ message(STATUS "Fetching OpenJPH")
include(FetchContent)
FetchContent_Declare(
openjph
GIT_REPOSITORY https://github.com/aous72/OpenJPH
GIT_TAG 0.18.2
GIT_REPOSITORY https://github.com/palemieux/OpenJPH
GIT_TAG feature/install-fix-openexr
)

FetchContent_MakeAvailable(openjph)
install(
TARGETS openjph
EXPORT OpenEXR
)
set_property(DIRECTORY ${openjph_SOURCE_DIR} PROPERTY OJPH_ENABLE_TIFF_SUPPORT OFF)
set_property(DIRECTORY ${openjph_SOURCE_DIR} PROPERTY OJPH_BUILD_TESTS OFF)
set_property(DIRECTORY ${openjph_SOURCE_DIR} PROPERTY OJPH_BUILD_EXECUTABLES OFF)
Expand Down

0 comments on commit 77c7d07

Please sign in to comment.