diff --git a/CMakeLists.txt b/CMakeLists.txt index d3d6aa33..cd0c6e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,10 +25,14 @@ if(NOT NOSTALGIA_BUILD_TYPE STREQUAL "GBA" AND EXISTS ${NOSTALGIA_CONAN_PATHS}) include(${NOSTALGIA_CONAN_PATHS}) endif() +set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/dist/${NOSTALGIA_BUILD_CONFIG}") +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) if(NOT OX_BARE_METAL) + add_definitions(-DOX_USE_STDLIB) set(CMAKE_POSITION_INDEPENDENT_CODE ON) endif() @@ -84,10 +88,6 @@ if(NOSTALGIA_IDE_BUILD) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) endif() -if(NOT NOSTALGIA_BUILD_TYPE STREQUAL "GBA") - add_definitions(-DOX_USE_STDLIB) -endif() - if(APPLE) set(CMAKE_MACOSX_RPATH OFF) set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia")