Skip to content

Commit a473e02

Browse files
committed
Add comment
Signed-off-by: Darby Johnston <[email protected]>
1 parent a30dc74 commit a473e02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
150150
set(CMAKE_CXX_EXTENSIONS OFF)
151151

152152
if(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")

0 commit comments

Comments
 (0)