Enable warnings as errors

cpp-jwt: supress OpenSSL deprecation warnings
This commit is contained in:
SachinVin 2023-05-07 15:14:11 +05:30
parent 06db4ffb17
commit c66594caf8
2 changed files with 13 additions and 0 deletions

View file

@ -102,6 +102,10 @@ else()
-Wno-attributes
)
if (CITRA_WARNINGS_AS_ERRORS)
add_compile_options(-Werror)
endif()
if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang)
add_compile_options("-stdlib=libc++")
endif()