Skip to content

Commit

Permalink
cmake: Fix for policy CMP0175
Browse files Browse the repository at this point in the history
Add argument POST_BUILD to add_custom_command() TARGET to fix a
warning for CMake policy CMP0175.
  • Loading branch information
stigbjorlykke committed Nov 22, 2024
1 parent 336123f commit 556f4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ if(ASCIIDOCTOR_FOUND AND XSLTPROC_EXECUTABLE)
endif()
# CMake 3.26 has copy_directory_if_different
add_custom_command(
TARGET user_guide_html
TARGET user_guide_html POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_BINARY_DIR}/wsug_html_chunked" "${WSUG_DIR}"
VERBATIM
Expand Down

0 comments on commit 556f4e1

Please sign in to comment.