Skip to content

Commit

Permalink
Only apply no-error defaulted-function-deleted on Clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Sep 23, 2019
1 parent 900a475 commit 13ab708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/vendor/rocksdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ if(FAIL_ON_WARNINGS)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
else() # assume GCC
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow -Wno-error=defaulted-function-deleted")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=defaulted-function-deleted")
endif()
endif()
endif()

Expand Down

0 comments on commit 13ab708

Please sign in to comment.