CMakeLists: Migrate off directly modifying CMAKE_CXX_FLAGS

We can just use add_compile_options to append the compilation flag to
the directory property.
This commit is contained in:
Lioncash 2019-08-25 04:28:25 -04:00
parent 6d7665ecd6
commit ddc5661a38
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
add_compile_options(-Wno-narrowing)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/boo AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/athena)