Define off64_t=off_t for macOS

Detect the systemd binary and install the systemd units conditionally.
pull/259/head
Andrew Udvare 2019-02-08 18:10:21 -05:00
parent cf51167b55
commit 8e3c3d25cb
1 changed files with 13 additions and 2 deletions

View File

@ -8,8 +8,19 @@ set( GRIVE_VERSION "0.5.1-dev" )
# common compile options
add_definitions( -DVERSION="${GRIVE_VERSION}" )
add_definitions( -D_FILE_OFFSET_BITS=64 -std=c++0x )
if ( APPLE )
add_definitions( -Doff64_t=off_t )
endif ( APPLE )
find_program(
HAVE_SYSTEMD systemd
PATHS /lib/systemd /usr/lib/systemd
NO_DEFAULT_PATH
)
if ( HAVE_SYSTEMD )
add_subdirectory( systemd )
endif( NOT HAVE_SYSTEMD )
add_subdirectory( systemd )
add_subdirectory( libgrive )
add_subdirectory( grive )