Tidy up cmake files

pull/708/head
Michael 5 years ago
parent 65af2c4266
commit 82958de2d7
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -59,6 +59,8 @@ else()
endif(MSVC_VERSION)
include(cmake/solaris.cmake)
include(cmake/unix.cmake)
include(cmake/win32.cmake)
if(WIN32)
set(CMAKE_CXX_STANDARD 17)
@ -224,23 +226,12 @@ if(JEMALLOC)
set(MALLOC_LIB jemalloc)
endif(JEMALLOC)
if(ANDROID)
list(APPEND LIBS log)
add_definitions(-DANDROID)
set(ANDROID_PLATFORM_SRC android/ifaddrs.c)
endif(ANDROID)
if(UNIX)
include(cmake/unix.cmake)
elseif(WIN32)
include(cmake/win32.cmake)
else()
message(FATAL_ERROR "What operating system _are_ you building on/for?")
endif()
set(LIBTUNTAP_SRC_BASE
${TT_ROOT}/tuntap.cpp
${TT_ROOT}/tuntap_log.cpp

@ -1,3 +1,7 @@
if(NOT UNIX)
return()
endif()
add_definitions(-DUNIX)
add_definitions(-DPOSIX)

@ -1,3 +1,7 @@
if(NOT WIN32)
return()
endif()
enable_language(RC)
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lshlwapi")

Loading…
Cancel
Save