Fix usage of sed and man page on OSX

This commit is contained in:
Marc Di Luzio 2014-12-31 13:50:15 +00:00
parent 9c68372f64
commit 3f76b6430b
3 changed files with 31 additions and 19 deletions

View file

@ -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 )