|
|
|
@ -53,6 +53,14 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
|
set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-unix-darwin.c ${TT_ROOT}/tuntap-unix-bsd.c)
|
|
|
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
|
|
|
|
set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-unix-sunos.c)
|
|
|
|
|
# Apple C++ screws up name decorations in stdc++fs, causing link to fail
|
|
|
|
|
# Samsung does not build c++experimental or c++fs in their Apple libc++ pkgsrc build
|
|
|
|
|
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
|
|
|
add_subdirectory(vendor)
|
|
|
|
|
include_directories("${CMAKE_CURRENT_LIST_DIR}/../vendor/cppbackport-master/lib")
|
|
|
|
|
add_definitions(-DLOKINET_USE_CPPBACKPORT)
|
|
|
|
|
set(FS_LIB cppbackport)
|
|
|
|
|
endif()
|
|
|
|
|
else()
|
|
|
|
|
message(FATAL_ERROR "Your operating system is not supported yet")
|
|
|
|
|
endif()
|
|
|
|
|