mirror of https://github.com/vitalif/grive2
Define off64_t=off_t for macOS
Detect the systemd binary and install the systemd units conditionally.pull/259/head
parent
cf51167b55
commit
8e3c3d25cb
|
@ -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 )
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue