generated from jnooree/c-like-templ
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from seoklab/build/clean-gcda
build: cleanup stale coverage data before linking
- Loading branch information
Showing
4 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Project NuriKit - Copyright 2024 SNU Compbio Lab. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
if(NOT CMAKE_SCRIPT_MODE_FILE) | ||
message(WARNING "This file must be executed with CMake in script mode, not included with include() or add_subdirectory().") | ||
return() | ||
endif() | ||
|
||
if(NOT NURI_COVERAGE_DATA_DIR) | ||
message(FATAL_ERROR "No parent directory provided.") | ||
endif() | ||
|
||
file(GLOB_RECURSE nuri_gcda LIST_DIRECTORIES OFF "${NURI_COVERAGE_DATA_DIR}/*.gcda") | ||
|
||
if(nuri_gcda) | ||
list(LENGTH nuri_gcda nuri_gcda_count) | ||
message(NOTICE "Removing ${nuri_gcda_count} gcda files in ${NURI_COVERAGE_DATA_DIR}") | ||
file(REMOVE ${nuri_gcda}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters