Skip to content

Commit 644f7bc

Browse files
committed
exrcheck: update CMakeLists.txt to install the tool
This makes the CMakeLists.txt for exrcheck look like other tools like exrinfo and uncomments the CMake call to install the tool. Signed-off-by: Matt Johnson <[email protected]>
1 parent 1982b6f commit 644f7bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bin/exrcheck/CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ 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+
if(OPENEXR_INSTALL_TOOLS)
11+
install(TARGETS exrcheck DESTINATION ${CMAKE_INSTALL_BINDIR})
12+
endif()
13+
if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED))
1114
target_compile_definitions(exrcheck PRIVATE OPENEXR_DLL)
1215
endif()

0 commit comments

Comments
 (0)