From a10547018e4e79f21a8170eebaf3a0f175e5739b Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 17 Sep 2019 20:54:11 +0800 Subject: [PATCH] cmake: don't install realpath manpage on non-macOS systems --- cmake/Install.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Install.cmake b/cmake/Install.cmake index 1bc71a923..d3bb7556d 100644 --- a/cmake/Install.cmake +++ b/cmake/Install.cmake @@ -44,10 +44,12 @@ SET(MANUALS ${CMAKE_CURRENT_BINARY_DIR}/user_doc/man/man1/fish.1 # Determine which man page we don't want to install. # On OS X, don't install a man page for open, since we defeat fish's open # function on OS X. +# On other operating systems, don't install a realpath man page, as they almost all have a realpath +# command, while macOS does not. IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") SET(CONDEMNED_PAGE "open.1") ELSE() - SET(CONDEMNED_PAGE "none") + SET(CONDEMNED_PAGE "realpath.1") ENDIF() # Define a function to help us create directories.