Instead of modifying include paths, include osxfuse header from the right location
This commit is contained in:
parent
980f560f04
commit
014b5703e0
@ -18,8 +18,6 @@ target_activate_cpp14(${PROJECT_NAME})
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(CMAKE_FIND_FRAMEWORK LAST)
|
||||
set(FUSE_LIB_NAME "osxfuse")
|
||||
# Add a default location for homebrew-installed openssl on Mac OS X to include search path
|
||||
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC /usr/local/include/osxfuse)
|
||||
else(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(FUSE_LIB_NAME "fuse")
|
||||
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
|
@ -3,6 +3,12 @@
|
||||
#define MESSMER_FSPP_FUSE_PARAMS_H_
|
||||
|
||||
#define FUSE_USE_VERSION 26
|
||||
#ifdef __linux__
|
||||
#include <fuse.h>
|
||||
#elif __APPLE__
|
||||
#include <osxfuse/fuse.h>
|
||||
#else
|
||||
#error System not supported
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user