Browse Source

[cmake] add MAC_OSX define for Mac

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1732/head
R4SAS 3 years ago
parent
commit
dc5cba60d1
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 4
      build/CMakeLists.txt

4
build/CMakeLists.txt

@ -97,6 +97,10 @@ if(WITH_UPNP)
add_definitions(-DUSE_UPNP) add_definitions(-DUSE_UPNP)
endif() endif()
if(APPLE AND CMAKE_OSX_ARCHITECTURES)
add_definitions(-DMAC_OSX)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Winvalid-pch -Wno-unused-parameter") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Winvalid-pch -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -pedantic") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -pedantic")
# TODO: The following is incompatible with static build and enabled hardening for OpenWRT. # TODO: The following is incompatible with static build and enabled hardening for OpenWRT.

Loading…
Cancel
Save