Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
208e3573
Commit
208e3573
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Replace unix `find` command by cmake instructions
parent
f79286bd
No related branches found
No related tags found
1 merge request
!37
Feature/language
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
cmake/CoverageRemoveObsoleteFiles.cmake
+9
-0
9 additions, 0 deletions
cmake/CoverageRemoveObsoleteFiles.cmake
with
12 additions
and
1 deletion
CMakeLists.txt
+
3
−
1
View file @
208e3573
...
...
@@ -252,7 +252,9 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
add_custom_target
(
coverage-clean-up
ALL
COMMAND find
"
${
PUGS_BINARY_DIR
}
"
-name \*.gcda -exec rm -f {} +;
COMMAND
${
CMAKE_COMMAND
}
-DPUGS_BINARY_DIR=
"
${
PUGS_BINARY_DIR
}
"
-P
${
PUGS_SOURCE_DIR
}
/cmake/CoverageRemoveObsoleteFiles.cmake
COMMENT
"Removing obsolete gcda to perform a net coverage."
)
...
...
This diff is collapsed.
Click to expand it.
cmake/CoverageRemoveObsoleteFiles.cmake
0 → 100644
+
9
−
0
View file @
208e3573
# ------------------------------------------------------------------------------
# Remove obsolete generated files that could last after a failing test-suite run
# These are generally trailing .gcda files
# ------------------------------------------------------------------------------
file
(
GLOB_RECURSE GCDA_FILE_LIST
"
${
PUGS_BINARY_DIR
}
/*.gcda"
)
if
(
GCDA_FILE_LIST
)
file
(
REMOVE
${
GCDA_FILE_LIST
}
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment