adding compiler flag to skip narrowing errors

This commit is contained in:
Rishabh Battulwar 2018-08-02 13:26:46 -07:00
parent b77909fab9
commit 3654e2949d
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,9 @@ if (NOT MSVC)
target_compile_options(FBX2glTF PRIVATE
"-Wno-null-dereference"
"-Wunused"
# need to add this to stop cppcodec, a dependency here, from failing to build
# @ref: https://stackoverflow.com/questions/20302595/how-to-disable-narrowing-conversion-warnings
"-Wno-narrowing"
)
endif()