1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-16 19:17:58 -05:00

CMakeLists,network: Create YUZU_UNIX macro to replace __unix__

__unix__ is not predefined on Apple platforms even though they are Unix.
This commit is contained in:
comex
2020-08-31 10:09:06 -04:00
parent 0dc234c5ea
commit 0e122c13ad
3 changed files with 8 additions and 5 deletions

View File

@@ -113,6 +113,9 @@ if (NOT DEFINED ARCHITECTURE)
endif()
message(STATUS "Target architecture: ${ARCHITECTURE}")
if (UNIX)
add_definitions(-DYUZU_UNIX=1)
endif()
# Configure C++ standard
# ===========================