소스 검색

This fails in 3rd Party libraries.

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

This reverts commit 9ec6531861.
main
offa 8 년 전
부모
커밋
98a2ac226a
2개의 변경된 파일0개의 추가작업 그리고 20개의 파일을 삭제
  1. +0
    -7
      CMakeLists.txt
  2. +0
    -13
      cmake/Compiler.cmake

+ 0
- 7
CMakeLists.txt 파일 보기

message(STATUS "Build Type : None") message(STATUS "Build Type : None")
endif() endif()


include(Compiler)


if( COVERAGE ) if( COVERAGE )
include(Coverage) include(Coverage)
-Wshadow -Wshadow
-Wold-style-cast -Wold-style-cast
) )
add_compile_options_if_supported(-Wduplicated-cond
-Wduplicated-branches
-Wlogical-op
-Wnull-dereference
-Wuseless-cast
)




set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)

+ 0
- 13
cmake/Compiler.cmake 파일 보기

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…
취소
저장