Skip to content

Commit

Permalink
usable
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed Oct 27, 2024
1 parent 4d180d8 commit 58bfb1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
# man pages for the bin programs

find_program(HELP2MAN help2man)
if(NOT HELP2MAN OR HELP2MAN STREQUAL "HELP2MAN-NOTFOUND")
message(WARNING "help2man not found. Setting HELP2MAN to a default path.")
# Set HELP2MAN to the specific path if not found
set(HELP2MAN "C:/usr/local/bin/help2man" CACHE FILEPATH "Path to help2man")
if(HELP2MAN STREQUAL "HELP2MAN-NOTFOUND" OR HELP2MAN MATCHES "C:/Program Files/Git")
message(WARNING "Detected help2man is not usable. Setting HELP2MAN to the specified path.")
set(HELP2MAN "C:/usr/local/bin/help2man" CACHE FILEPATH "Path to help2man" FORCE)
else()
message(STATUS "help2man found at ${HELP2MAN}")
endif()
Expand Down

0 comments on commit 58bfb1d

Please sign in to comment.