mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
cmake: Cleanup (#2535)
- Don't call enable_language before project. See CMake docs for CMP0165. - Remove boost-related cache variables. It's too late to set them because Boost::headers has already been found. - Don't build SDL3-test library. Not used by shadps4. - Remove /Zc:preprocessor from toml11's INTERFACE_COMPILE_OPTIONS. Clang-cl does not support this flag and emits a lot of warnings. - Remove dummy.cpp and make gcn a proper INTERFACE target.
This commit is contained in:
@@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
if(APPLE)
|
||||
enable_language(OBJC)
|
||||
list(APPEND ADDITIONAL_LANGUAGES OBJC)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 14)
|
||||
endif()
|
||||
|
||||
@@ -16,7 +16,7 @@ if (NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
project(shadPS4 CXX C ASM)
|
||||
project(shadPS4 CXX C ASM ${ADDITIONAL_LANGUAGES})
|
||||
|
||||
# Forcing PIE makes sure that the base address is high enough so that it doesn't clash with the PS4 memory.
|
||||
if(UNIX AND NOT APPLE)
|
||||
|
||||
Reference in New Issue
Block a user