Fix usage of sed and man page on OSX
This commit is contained in:
parent
9c68372f64
commit
3f76b6430b
3 changed files with 31 additions and 19 deletions
|
@ -30,7 +30,15 @@ add_custom_target(
|
|||
)
|
||||
|
||||
# Install the ttrts man page
|
||||
install( FILES "${CMAKE_BINARY_DIR}/ttrts.6" DESTINATION man/man6/ )
|
||||
if( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
|
||||
set ( MANPAGE_LOC share/man/man6 )
|
||||
elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
|
||||
set ( MANPAGE_LOC man/man6 )
|
||||
else()
|
||||
message(ERROR "Unsupported system detected")
|
||||
endif()
|
||||
|
||||
install( FILES "${CMAKE_BINARY_DIR}/ttrts.6" DESTINATION ${MANPAGE_LOC} )
|
||||
|
||||
# Subprojects
|
||||
add_subdirectory( source/ttrts )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue