[doc] CMake: more portable clean_doxygen_garbage

Use cmake -E remove instead of rm -f.
This commit is contained in:
Matteo Cypriani 2013-09-11 15:24:00 -04:00
parent c3896662fd
commit 810d02d5b8
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ add_custom_command(
# built, and you cannot use CMake functions in a custom target or
# command.
add_custom_target(clean_doxygen_garbage
COMMAND rm -f "${OUTPUT_DIRECTORY}/_*_owlps_libowlps*_.${SECTION}")
COMMAND ${CMAKE_COMMAND} -E remove "${OUTPUT_DIRECTORY}/_*_owlps_libowlps*_.${SECTION}")
# Set up the target
add_custom_target(doc_doxygen true DEPENDS ${DOXYGEN_MANPAGES})