Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/remove_DebWithRelDeps' into…
Browse files Browse the repository at this point in the history
… ci/symbol
  • Loading branch information
MistEO committed Dec 8, 2024
2 parents 3c8d97a + cc438a5 commit 526cf89
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project(MaaFw)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules")

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_MAP_IMPORTED_CONFIG_DebWithRelDeps "DebWithRelDeps;Release;")

set(Boost_NO_WARN_NEW_VERSIONS ON)

Expand Down
24 changes: 0 additions & 24 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@
"configuration": "Debug",
"jobs": 16
},
{
"name": "NinjaMulti - DebWithRelDeps",
"displayName": "Ninja MultiConfig DebWithRelDeps",
"description": "Ninja MultiConfig DebWithRelDeps",
"configurePreset": "NinjaMulti",
"configuration": "RelWithDebInfo",
"jobs": 16
},
{
"name": "NinjaMulti - Release",
"displayName": "Ninja MultiConfig Release",
Expand All @@ -93,14 +85,6 @@
"configuration": "Debug",
"jobs": 16
},
{
"name": "NinjaMulti Win32 - DebWithRelDeps",
"displayName": "Ninja NinjaMulti Win32 DebWithRelDeps",
"description": "Ninja NinjaMulti Win32 DebWithRelDeps",
"configurePreset": "NinjaMulti Win32",
"configuration": "RelWithDebInfo",
"jobs": 16
},
{
"name": "NinjaMulti Win32 - Release",
"displayName": "Ninja NinjaMulti Win32 Release",
Expand All @@ -117,14 +101,6 @@
"configuration": "Debug",
"jobs": 16
},
{
"name": "MSVC 2022 - DebWithRelDeps",
"displayName": "MSVC 2022 DebWithRelDeps",
"description": "MSVC 2022 DebWithRelDeps",
"configurePreset": "MSVC 2022",
"configuration": "DebWithRelDeps",
"jobs": 16
},
{
"name": "MSVC 2022 - Release",
"displayName": "MSVC 2022 Release",
Expand Down
9 changes: 0 additions & 9 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
set(debug_comp_defs "_DEBUG;MAA_DEBUG")
add_compile_definitions("$<$<CONFIG:Debug>:${debug_comp_defs}>")

set(rel_debug_comp_defs "MAA_DEBUG")
add_compile_definitions("$<$<CONFIG:DebWithRelDeps>:${rel_debug_comp_defs}>")

if(APPLE)
set(CMAKE_INSTALL_RPATH "@loader_path;@executable_path")
set(CMAKE_BUILD_RPATH "@loader_path;@executable_path")
Expand All @@ -25,9 +22,6 @@ if(MSVC)
# https://github.com/actions/runner-images/issues/10004 https://github.com/microsoft/STL/releases/tag/vs-2022-17.10
add_compile_definitions("_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")

set(rel_debug_comp_options "/Od")
add_compile_options("$<$<CONFIG:DebWithRelDeps>:${rel_debug_comp_options}>")

set(release_link_options "/OPT:REF;/OPT:ICF")
add_link_options("$<$<CONFIG:Release>:${release_link_options}>")

Expand Down Expand Up @@ -59,9 +53,6 @@ else()

endforeach()
endif()

set(rel_debug_comp_options "-O0")
add_compile_options("$<$<CONFIG:DebWithRelDeps>:${rel_debug_comp_options}>")
endif()

set(CMAKE_CXX_STANDARD 20)
Expand Down

0 comments on commit 526cf89

Please sign in to comment.