mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
Fix a warning
This commit is contained in:
parent
c56b17029a
commit
87e4ea2906
@ -26,7 +26,7 @@ if (MSVC)
|
|||||||
target_compile_definitions(gmock PUBLIC _VARIADIC_MAX=10)
|
target_compile_definitions(gmock PUBLIC _VARIADIC_MAX=10)
|
||||||
|
|
||||||
# Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions.
|
# Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions.
|
||||||
target_compile_definitions(gmock PUBLIC _CRT_SECURE_NO_WARNINGS)
|
target_compile_definitions(gmock PRIVATE _CRT_SECURE_NO_WARNINGS)
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
# Disable MSVC warnings of POSIX functions.
|
# Disable MSVC warnings of POSIX functions.
|
||||||
target_compile_options(gmock PUBLIC -Wno-deprecated-declarations)
|
target_compile_options(gmock PUBLIC -Wno-deprecated-declarations)
|
||||||
|
Loading…
Reference in New Issue
Block a user