Sfoglia il codice sorgente

This fails in 3rd Party libraries.

Revert "Optional warnings added. These are only used if supported by the"

This reverts commit 9ec6531861.
main
offa 7 anni fa
parent
commit
98a2ac226a
2 ha cambiato i file con 0 aggiunte e 20 eliminazioni
  1. +0
    -7
      CMakeLists.txt
  2. +0
    -13
      cmake/Compiler.cmake

+ 0
- 7
CMakeLists.txt Vedi File

@@ -15,7 +15,6 @@ else()
message(STATUS "Build Type : None")
endif()

include(Compiler)

if( COVERAGE )
include(Coverage)
@@ -29,12 +28,6 @@ add_compile_options(-Wall
-Wshadow
-Wold-style-cast
)
add_compile_options_if_supported(-Wduplicated-cond
-Wduplicated-branches
-Wlogical-op
-Wnull-dereference
-Wuseless-cast
)


set(CMAKE_CXX_STANDARD 14)

+ 0
- 13
cmake/Compiler.cmake Vedi File

@@ -1,13 +0,0 @@
include(CheckCXXCompilerFlag)

function(add_compile_options_if_supported)
foreach(flag ${ARGN})
set(option_var option_supported_${flag})
CHECK_CXX_COMPILER_FLAG(${flag} ${option_var})

if( ${option_var} )
add_compile_options(${flag})
endif()
endforeach()
endfunction()


Loading…
Annulla
Salva