From e025eade6e40ad072ffd9f268c00a6df6630415c Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Thu, 24 Aug 2023 19:07:44 +0200 Subject: [PATCH] Suppress -Wbidi-chars on newer GCC's --- cpp/ycm/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 0b6a3cd7b6..2d5e339294 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -418,6 +418,12 @@ endif() ############################################################################# +if ( CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12 ) + target_compile_options( ${PROJECT_NAME} PRIVATE "-Wno-bidi-chars" ) +endif() + +############################################################################# + if( SYSTEM_IS_SUNOS ) # SunOS needs this setting for thread support target_compile_options( ${PROJECT_NAME} PUBLIC "-pthreads" )