change UNIX with UNIX AND NOT APPLE in CMakeLists.txt

This commit is contained in:
Random06457 2024-08-29 10:25:58 +09:00
parent 65b107a448
commit 1fef1885ea
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Forcing PIE makes sure that the base address is high enough so that it doesn't clash with the PS4 memory.
if (UNIX)
if(UNIX AND NOT APPLE)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
endif()