mirror of https://github.com/vitalif/grive2
commit
ad9b66a92c
|
@ -26,8 +26,8 @@ set_target_properties( grive_executable
|
||||||
|
|
||||||
install(TARGETS grive_executable RUNTIME DESTINATION bin)
|
install(TARGETS grive_executable RUNTIME DESTINATION bin)
|
||||||
|
|
||||||
if ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
||||||
install(FILES doc/grive.1 DESTINATION man/man1 )
|
install(FILES doc/grive.1 DESTINATION man/man1 )
|
||||||
else ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
else ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
||||||
install(FILES doc/grive.1 DESTINATION share/man/man1 )
|
install(FILES doc/grive.1 DESTINATION share/man/man1 )
|
||||||
endif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
endif( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
|
||||||
|
|
|
@ -144,6 +144,10 @@ target_link_libraries( btest
|
||||||
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
|
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing" )
|
||||||
|
endif ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
|
||||||
|
|
||||||
if ( WIN32 )
|
if ( WIN32 )
|
||||||
else ( WIN32 )
|
else ( WIN32 )
|
||||||
set_target_properties( btest
|
set_target_properties( btest
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue