Fix fetch method causing test-drive tests to be included in CTest list #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Good evening folks,
Thanks for all the work you are doing to reviving Fortran into a more modern language!
I'm attempting to add some unit testing to a rather old Fortran code base using CMake, and followed the steps shown in this repository for integrating
test-drive
into my project. However, I noticed rather quickly that the tests fromtest-drive
were making it into my own project testing and failing:I don't think this happens on the
cmake
andpkgconf
methods inFindtest-drive.cmake
, because both of those are installed paths with no mention of tests.This pull request fixes this by defining a
TEST_DRIVE_BUILD_TESTING
option that will not be defined iftest-drive
is linked to afterFetchContent
.