mirror of https://github.com/AxioDL/metaforce.git
Move SDL2 import before boo
This commit is contained in:
parent
52c8a82283
commit
80eb125631
|
@ -38,6 +38,15 @@ else ()
|
|||
include(athena/atdna/atdnaHelpers.cmake)
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
set(SDL_LIBC ON CACHE BOOL "Use the system C library" FORCE)
|
||||
endif ()
|
||||
add_subdirectory(../extern/SDL SDL2 EXCLUDE_FROM_ALL)
|
||||
if (NOT MSVC)
|
||||
target_compile_options(SDL2-static PRIVATE -Wno-implicit-fallthrough -Wno-shadow)
|
||||
endif ()
|
||||
|
||||
# boo must come after SDL2
|
||||
add_subdirectory(boo EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(nod EXCLUDE_FROM_ALL)
|
||||
# amuse must come after athena/atdna, boo and nod
|
||||
|
@ -90,14 +99,6 @@ else ()
|
|||
message(WARNING "nativefiledialog unsupported for ${CMAKE_SYSTEM_NAME}")
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
set(SDL_LIBC ON CACHE BOOL "Use the system C library" FORCE)
|
||||
endif ()
|
||||
add_subdirectory(../extern/SDL SDL2 EXCLUDE_FROM_ALL)
|
||||
if (NOT MSVC)
|
||||
target_compile_options(SDL2-static PRIVATE -Wno-implicit-fallthrough -Wno-shadow)
|
||||
endif ()
|
||||
|
||||
# Enable MoltenVK
|
||||
#if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
||||
# set(DAWN_ENABLE_VULKAN ON CACHE BOOL "Enable compilation of the Vulkan backend" FORCE)
|
||||
|
|
Loading…
Reference in New Issue