mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 06:46:22 -05:00
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:
parent
3c82b81899
commit
74c1c77973
1 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue