Skip to content

Commit 75558fb

Browse files
committed
exrcheck: update CMakeLists.txt to enable developer tool installation
This makes the CMakeLists.txt for exrcheck look like other tools like exrinfo and uncomments the CMake call to install the tool. One difference though is that exrcheck is considered a developer tool, and as such is only installed when the OPENEXR_INSTALL_DEVELOPER_TOOLS option is enabled. Signed-off-by: Matt Johnson <[email protected]>
1 parent 1adf14d commit 75558fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bin/exrcheck/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ target_link_libraries(exrcheck OpenEXR::OpenEXR OpenEXR::OpenEXRUtil)
66
set_target_properties(exrcheck PROPERTIES
77
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
88
)
9-
# install(TARGETS exrcheck DESTINATION ${CMAKE_INSTALL_BINDIR})
10-
if(WIN32 AND BUILD_SHARED_LIBS)
9+
10+
# exrcheck is considered a "developer" tool, so only install it
11+
# when installation of developer tools is enabled.
12+
if(OPENEXR_INSTALL_DEVELOPER_TOOLS)
13+
install(TARGETS exrcheck DESTINATION ${CMAKE_INSTALL_BINDIR})
14+
endif()
15+
if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED))
1116
target_compile_definitions(exrcheck PRIVATE OPENEXR_DLL)
1217
endif()

0 commit comments

Comments
 (0)