mirror of https://github.com/AxioDL/metaforce.git
Better CMake configuration for Xcode
This commit is contained in:
parent
d0e34e0ac3
commit
2b022c7d72
|
@ -2,6 +2,21 @@ cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
|||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries)
|
||||
|
||||
if(APPLE)
|
||||
# Shaddup Xcode
|
||||
function(add_executable TARGET)
|
||||
_add_executable(${TARGET} ${ARGN})
|
||||
set_target_properties(${TARGET} PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
|
||||
endfunction()
|
||||
function(add_library TARGET)
|
||||
_add_library(${TARGET} ${ARGN})
|
||||
list(GET ARGV 1 ARG1)
|
||||
if(NOT ${ARG1} STREQUAL INTERFACE)
|
||||
set_target_properties(${TARGET} PROPERTIES XCODE_ATTRIBUTE_WARNING_CFLAGS "")
|
||||
endif()
|
||||
endfunction()
|
||||
endif()
|
||||
|
||||
if(APPLE AND NOT CMAKE_OSX_SYSROOT)
|
||||
# If the Xcode SDK is lagging behind system version, CMake needs this done first
|
||||
execute_process(COMMAND xcrun --sdk macosx --show-sdk-path
|
||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit 04a725a2621be5217354bad5dd01e5cb786f941c
|
||||
Subproject commit c4e21d26fe456c6ed089840763b6d751a2a2bed8
|
Loading…
Reference in New Issue