[nostalgia] Make BUILD_STUDIO setting a build parameter

This commit is contained in:
Gary Talent 2019-12-20 00:13:23 -06:00
parent 9187bcf62b
commit 942d548fdd

View File

@ -5,13 +5,14 @@ project(nostalgia)
set(NOSTALGIA_BUILD_TYPE "Native" CACHE STRING "The type of build to produce(Native/GBA)") set(NOSTALGIA_BUILD_TYPE "Native" CACHE STRING "The type of build to produce(Native/GBA)")
set(NOSTALGIA_IDE_BUILD ON CACHE STRING "Build for IDE's to run") set(NOSTALGIA_IDE_BUILD ON CACHE STRING "Build for IDE's to run")
set(NOSTALGIA_QT_PATH "" CACHE STRING "Path to Qt Libraries") set(NOSTALGIA_QT_PATH "" CACHE STRING "Path to Qt Libraries")
set(NOSTALGIA_BUILD_STUDIO ON CACHE STRING "Build Studio")
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA") if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
set(NOSTALGIA_BUILD_STUDIO FALSE) set(NOSTALGIA_BUILD_STUDIO OFF)
set(OX_BARE_METAL ON) set(OX_BARE_METAL ON)
set(OX_USE_STDLIB OFF) set(OX_USE_STDLIB OFF)
else() else()
set(NOSTALGIA_BUILD_STUDIO TRUE) set(NOSTALGIA_BUILD_STUDIO ON)
set(CMAKE_PREFIX_PATH ${NOSTALGIA_QT_PATH}) set(CMAKE_PREFIX_PATH ${NOSTALGIA_QT_PATH})
endif() endif()
@ -76,10 +77,6 @@ if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
endif() endif()
if(NOSTALGIA_IDE_BUILD) if(NOSTALGIA_IDE_BUILD)