Skip to content

Commit

Permalink
Update CMakeLists to exclude pdb when running code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
roopavr-adsk committed Mar 19, 2024
1 parent 4ed0dac commit 2122a9f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ install(TARGETS ${TARGET_NAME}
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/maya)

if(IS_WINDOWS)
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}>
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/maya OPTIONAL)
if (NOT CODE_COVERAGE)
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}>
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/maya OPTIONAL)
endif()
endif()

set(LIBFILENAME ${CMAKE_SHARED_LIBRARY_PREFIX}${TARGET_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
Expand Down

0 comments on commit 2122a9f

Please sign in to comment.