File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
150150set (CMAKE_CXX_EXTENSIONS OFF )
151151
152152if (OTIO_CXX_COVERAGE AND NOT MSVC )
153- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-update=atomic -fprofile-exclude-files='/usr/*;src/deps/*'" )
153+ # Note that we exclude some OTIO files from code coverage since they are
154+ # causing errors like this:
155+ # geninfo: ERROR: "typeRegistry.h":63: mismatched exception tag for id 3, 3: '0' -> '1'
156+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-update=atomic -fprofile-exclude-files='/usr/*;src/deps/*;src/opentimelineio/typeRegistry.h;src/opentimelineio/serialization.cpp;src/py-opentimelineio/opentime-bindings/opentime_bindings.cpp;src/py-opentimelineio/opentimelineio-bindings/otio_tests.cpp;src/py-opentimelineio/opentimelineio-bindings/otio_bindings.cpp'" )
154157 # this causes cmake to produce file.gcno instead of file.cpp.gcno
155158 set (CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
156159 message (STATUS "Building C++ with Coverage: ON" )
You can’t perform that action at this time.
0 commit comments