https://github.com/adishavit/argh/pull/83

From 8d085d1ad8b9946a7d2a1cd28777ff2e15145803 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <vital.had@gmail.com>
Date: Thu, 4 Jan 2024 04:40:39 +0800
Subject: [PATCH] CMakeLists: fix installation on macOS

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git CMakeLists.txt CMakeLists.txt
index 93181be..72f157f 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -42,7 +42,7 @@ if(ARGH_MASTER_PROJECT)
 	install(FILES "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION ${CMAKE_INSTALL_DOCDIR})
 	install(FILES "${CMAKE_CURRENT_LIST_DIR}/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR})
 
-	if(CMAKE_SYSTEM_NAME STREQUAL Linux)
+	if(APPLE OR CMAKE_SYSTEM_NAME STREQUAL Linux)
 	# this might be a bit too restrictive, since for other (BSD, ...) this might apply also
 	# but this can be fixed later in extra pull requests from people on the platform
 		install(FILES argh-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argh)
