From bc6128b1984b8dd9572f423bb92d6180ee49f6c0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 12 Mar 2022 02:54:43 -0600 Subject: [PATCH] [nostalgia] Fix OBJCXX option not to set for GBA builds --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f341e8c3..a51bda97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,14 @@ cmake_minimum_required(VERSION 3.19) set(CMAKE_POLICY_DEFAULT_CMP0110 NEW) # requires CMake 3.19 -if(APPLE) +include(deps/buildcore/base.cmake) + +if(APPLE AND NOT BUILDCORE_TARGET STREQUAL "gba") project(nostalgia CXX OBJCXX) else() - project(nostalgia CXX) + project(nostalgia) endif() -include(deps/buildcore/base.cmake) - set(NOSTALGIA_BUILD_PLAYER ON CACHE BOOL "Build Player") set(NOSTALGIA_BUILD_STUDIO ON CACHE BOOL "Build Studio") set(OX_ENABLE_TRACEHOOK OFF CACHE BOOL "Generate OxTraceHook shared library for uprobes")