forked from ShuriZma/suyu
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
|
@ -7,7 +7,11 @@ cmake_minimum_required(VERSION 3.22)
|
||||||
set(CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT OFF)
|
set(CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT OFF)
|
||||||
set(CMAKE_XCODE_EMIT_RELATIVE_PATH YES)
|
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}/CMakeModules")
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
|
||||||
|
|
Loading…
Reference in New Issue