aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_targets.f90
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpm_targets.f90')
-rw-r--r--src/fpm_targets.f904
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90
index d480866..f10b330 100644
--- a/src/fpm_targets.f90
+++ b/src/fpm_targets.f90
@@ -191,6 +191,10 @@ subroutine build_target_list(targets,model)
do i=1,size(sources)
+ if (.not. model%include_tests) then
+ if (sources(i)%unit_scope == FPM_SCOPE_TEST) cycle
+ end if
+
select case (sources(i)%unit_type)
case (FPM_UNIT_MODULE,FPM_UNIT_SUBMODULE,FPM_UNIT_SUBPROGRAM,FPM_UNIT_CSOURCE)