mirror of https://github.com/oxen-io/lokinet
fix cxx flags
This commit is contained in:
parent
48e30f5492
commit
7922959528
|
@ -34,6 +34,8 @@ else()
|
|||
message(ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 or C++17 support. Please use a different C++ compiler.")
|
||||
endif()
|
||||
|
||||
add_cxxflags("-fpermissive")
|
||||
|
||||
if(DEBIAN)
|
||||
add_definitions(-DDEBIAN)
|
||||
endif()
|
||||
|
@ -187,6 +189,7 @@ if(UNIX)
|
|||
elseif(WIN32 OR MINGW)
|
||||
set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-windows.c)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
add_definitions(-DWIN32)
|
||||
else()
|
||||
message(FATAL_ERROR "What operating system _are_ you building on/for?")
|
||||
endif(UNIX)
|
||||
|
|
Loading…
Reference in New Issue