mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
Use pragams instead of compile options
This commit is contained in:
@@ -57,11 +57,6 @@ function(spdlog_prepare_test test_target spdlog_lib)
|
||||
endif()
|
||||
add_test(NAME ${test_target} COMMAND ${test_target})
|
||||
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
|
||||
|
||||
# Workaround GCC 12 false positive
|
||||
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND "${CMAKE_CXX_COMPILER_VERSION}" MATCHES "^12\..*")
|
||||
target_compile_options(${test_target} PRIVATE "-Wno-maybe-uninitialized")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
# The compiled library tests
|
||||
|
Reference in New Issue
Block a user