Skip to content

Commit 95fec77

Browse files
authored
Merge pull request #1705 from bstaletic/no-bidi-chars
Suppress -Wbidi-chars on newer GCC's
2 parents 7d5ef4c + e025ead commit 95fec77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/ycm/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ endif()
418418

419419
#############################################################################
420420

421+
if ( CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12 )
422+
target_compile_options( ${PROJECT_NAME} PRIVATE "-Wno-bidi-chars" )
423+
endif()
424+
425+
#############################################################################
426+
421427
if( SYSTEM_IS_SUNOS )
422428
# SunOS needs this setting for thread support
423429
target_compile_options( ${PROJECT_NAME} PUBLIC "-pthreads" )

0 commit comments

Comments
 (0)