Skip to content

Commit 4c6b91f

Browse files
committed
COMP: Fix CMP0177 install-path warning in WriteAnImage
The install(FILES ...) DESTINATION contained a doubled separator ("Code/Base//WriteAnImage"), and the install(TARGETS ...) DESTINATION had a trailing slash. Under CMake 3.31+ (which enables CMP0177) the unnormalized paths emit a developer warning, and the documentation and python-superbuild dashboards treat any build warning as a failure, so the gate fails for every PR built on a recent CMake. Normalize both DESTINATION paths.
1 parent 71aace7 commit 4c6b91f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/IO/ImageBase/WriteAnImage/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ target_link_libraries(${PROJECT_NAME}
1313
)
1414

1515
install(TARGETS ${PROJECT_NAME}
16-
DESTINATION bin/ITKSphinxExamples/Base/
16+
DESTINATION bin/ITKSphinxExamples/Base
1717
COMPONENT Runtime
1818
)
1919

2020
install(FILES Code.cxx CMakeLists.txt
21-
DESTINATION share/ITKSphinxExamples/Code/Base//WriteAnImage
21+
DESTINATION share/ITKSphinxExamples/Code/Base/WriteAnImage
2222
COMPONENT Code
2323
)
2424

0 commit comments

Comments
 (0)