Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative DESTINATION path when installing man page #1590

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -526,14 +526,8 @@ install(TARGETS c3c DESTINATION bin)
install(DIRECTORY lib/ DESTINATION lib/c3)

# Man page install (OSX/Linux only)
set(MAN_PAGE_DIR "/usr/local/share/man/man1")
message(STATUS "installing man page to ${MAN_PAGE_DIR}")

if (NOT WIN32 AND EXISTS "${MAN_PAGE_DIR}")
install(FILES c3c.1 DESTINATION ${MAN_PAGE_DIR})
elseif (NOT WIN32)
# won't create MAN_PAGE_DIR if it doesn't already exist
message(WARNING "Man page directory ${MAN_PAGE_DIR} does not exist, skipping man page installation")
if (NOT WIN32)
install(FILES c3c.1 DESTINATION "share/man/man1")
endif()

if (C3_WITH_LLVM AND DEFINED sanitizer_runtime_libraries)
Expand Down
Loading