From 3654e2949d9c35fe60661c68633469a4a202e54c Mon Sep 17 00:00:00 2001 From: Rishabh Battulwar Date: Thu, 2 Aug 2018 13:26:46 -0700 Subject: [PATCH] adding compiler flag to skip narrowing errors --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9362264..aa348c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()