mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 07:52:39 +00:00
fix windows compilation (2) (#1411)
* fix windows compialtion (2) * loader: guard LoadExec close_range path with __linux__ for macOS --------- Co-authored-by: ReverendOzmund <catmilker@proton.me>
This commit is contained in:
1 parent
6f0cddd440
commit
16a7fe689a
3 files changed
+9
-4
No files matched your search
@@ -40,6 +40,11 @@ if (NOT (WIN32 OR LINUX OR APPLE))
|
||||
message(FATAL_ERROR "only Windows, Linux, and macOS builds are supported")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
# Prevent Windows headers from defining min/max macros in all targets.
|
||||
add_compile_definitions(NOMINMAX)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
Reference in new issue
Block a user