/
githubmirror
/
json
Обзор
Документация
Войти
/
githubmirror
/
json
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/abi/CMakeLists.txt
30 строк
1 KB
risa2000
Remove forced /Od flag in MSVC Release build. (#5216)
28 июн 2026, 18:39
Не верифицирован
28 июн 2026, 18:39
c37f82e
Код
Авторство
О чём код?
# common build settings add_library(abi_compat_common INTERFACE) target_compile_definitions(abi_compat_common INTERFACE DOCTEST_CONFIG_SUPER_FAST_ASSERTS JSON_TEST_KEEP_MACROS) target_compile_features(abi_compat_common INTERFACE cxx_std_11) target_compile_options(abi_compat_common INTERFACE $<$<CXX_COMPILER_ID:MSVC>:/EHsc> # MSVC: Force to always compile with W4 $<$<CXX_COMPILER_ID:MSVC>:/W4;$<$<CONFIG:Release>:/wd4702>> # https://github.com/nlohmann/json/pull/3229 $<$<CXX_COMPILER_ID:Intel>:-diag-disable=2196> $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-deprecated;-Wno-float-equal> $<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations> $<$<CXX_COMPILER_ID:Intel>:-diag-disable=1786>) target_include_directories(abi_compat_common SYSTEM INTERFACE ../thirdparty/doctest include) target_link_libraries(abi_compat_common INTERFACE ${NLOHMANN_JSON_TARGET_NAME}) # shared main() add_library(abi_compat_main STATIC main.cpp) target_link_libraries(abi_compat_main PUBLIC abi_compat_common) # add individual tests add_subdirectory(config) add_subdirectory(diag) add_subdirectory(inline_ns)