fix: check if apple before enabling objc

Some compilers either only compile to an objc v1 or don't compile it at all, while it most likely wouldn't cause issues I added this just in case we stay on objc
This commit is contained in:
Exverge 2024-04-06 12:22:43 -04:00
parent 3c82b81899
commit 74c1c77973
No known key found for this signature in database
GPG key ID: 19AAFC0AC6A9B35A

View file

@ -7,7 +7,11 @@ cmake_minimum_required(VERSION 3.22)
set(CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT OFF)
set(CMAKE_XCODE_EMIT_RELATIVE_PATH YES)
project(suyu LANGUAGES C CXX OBJC OBJCXX)
if(APPLE)
project(suyu LANGUAGES C CXX OBJC OBJCXX)
else()
project(suyu)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")