Add -Wno-deprecated-literal-operator for clang
This commit is contained in:
@@ -96,6 +96,15 @@ include_directories(src)
|
||||
|
||||
find_package(weaseljson REQUIRED)
|
||||
|
||||
# Suppress deprecated literal operator warnings globally (from nlohmann_json and
|
||||
# toml11)
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wno-unknown-warning-option
|
||||
-Wno-deprecated-literal-operator)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
# GCC doesn't have deprecated-literal-operator warning, so no need to suppress
|
||||
endif()
|
||||
|
||||
# Generate JSON token hash table using gperf
|
||||
find_program(GPERF_EXECUTABLE gperf REQUIRED)
|
||||
add_custom_command(
|
||||
|
||||
Reference in New Issue
Block a user