Skip to content

Commit a259e99

Browse files
committed
cmake: fix compatibility with the Ninja generator backend
Fixes the following error: ``` $ ninja -C build ninja: Entering directory `build' ninja: warning: phony target 'src/csfilter-kfp.1' names itself as an input; ignoring [-w phonycycle=warn] ninja: error: build.ninja:471: multiple rules generate src/csfilter-kfp.1 ```
1 parent db6e285 commit a259e99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ if(HELP2MAN)
207207
--include "${CMAKE_SOURCE_DIR}/doc/csfilter-kfp.h2m"
208208
${CMAKE_CURRENT_BINARY_DIR}/csfilter-kfp
209209
> csfilter-kfp.1 || rm -f csfilter-kfp.1
210+
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/csfilter-kfp"
211+
"${CMAKE_SOURCE_DIR}/doc/csfilter-kfp.h2m"
210212
COMMENT "Generating csfilter-kfp man page"
211213
VERBATIM)
212-
add_custom_target(csfilter-kfp.1 ALL DEPENDS
214+
add_custom_target(man-csfilter-kfp ALL DEPENDS
213215
"${CMAKE_CURRENT_BINARY_DIR}/csfilter-kfp.1")
214216
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/csfilter-kfp.1
215217
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)

0 commit comments

Comments
 (0)