Corentin is wrong
This commit is contained in:
parent
7687fb506c
commit
0b4926cc60
1 changed files with 6 additions and 5 deletions
|
@ -65,12 +65,13 @@ function(set_project_warnings)
|
|||
|
||||
if (WIN32)
|
||||
set(PROJECT_WARNINGS ${MSVC_WARNINGS})
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||||
set(PROJECT_WARNINGS ${CLANG_WARNINGS})
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(PROJECT_WARNINGS ${GCC_WARNINGS})
|
||||
# elseif (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||||
# set(PROJECT_WARNINGS ${CLANG_WARNINGS})
|
||||
# elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
# set(PROJECT_WARNINGS ${GCC_WARNINGS})
|
||||
else ()
|
||||
message(AUTHOR_WARNING "No compiler warnings set for '${CMAKE_CXX_COMPILER_ID}' compiler.")
|
||||
set(PROJECT_WARNINGS ${GCC_WARNINGS})
|
||||
# message(AUTHOR_WARNING "No compiler warnings set for '${CMAKE_CXX_COMPILER_ID}' compiler.")
|
||||
endif ()
|
||||
|
||||
add_compile_options(${PROJECT_WARNINGS})
|
||||
|
|
Loading…
Reference in a new issue