fix cxx flags

This commit is contained in:
Jeff Becker 2018-09-07 16:54:50 -04:00
parent 48e30f5492
commit 7922959528
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 3 additions and 0 deletions

View File

@ -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)