Skip to content

Commit

Permalink
Fix man pages installation
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 2, 2017
1 parent 1036c8f commit 6475693
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ project(catimg)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

if (DEFINED ENV{man1})
set(INSTALL_MAN $ENV{man1})
else()
set(INSTALL_MAN "/share/man/man1")
if (NOT MAN_OUTPUT_PATH)
set(MAN_OUTPUT_PATH "/share/man/man1")
endif()

# set some options
Expand Down Expand Up @@ -36,7 +34,7 @@ install(TARGETS catimg

# man page
install(FILES ${PROJECT_SOURCE_DIR}/man/catimg.1
RUNTIME DESTINATION share/man/man1)
DESTINATION ${MAN_OUTPUT_PATH})

# libs
target_link_libraries(catimg m)
Expand Down

0 comments on commit 6475693

Please sign in to comment.