aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-11-27 18:23:53 +0000
committerLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-11-29 11:54:10 +0000
commitfc058eca31036584649cd3b712a649e9dd01c2d7 (patch)
treed7f4d378500f41a5c39504e658df77a4a0659157 /src
parent93b629e504900432ea712cc3ed65dd937483e1c1 (diff)
downloadfpm-fc058eca31036584649cd3b712a649e9dd01c2d7.tar.gz
fpm-fc058eca31036584649cd3b712a649e9dd01c2d7.zip
Update: backend to print message if up to date.
Diffstat (limited to 'src')
-rw-r--r--src/fpm_backend.F906
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fpm_backend.F90 b/src/fpm_backend.F90
index 796c7ac..f8d491f 100644
--- a/src/fpm_backend.F90
+++ b/src/fpm_backend.F90
@@ -92,6 +92,12 @@ subroutine build_package(targets,model,verbose)
! Construct build schedule queue
call schedule_targets(queue, schedule_ptr, targets)
+ ! Check if queue is empty
+ if (.not.verbose .and. size(queue) < 1) then
+ write(*,*) 'Project is up to date'
+ return
+ end if
+
! Initialise build status flags
allocate(stat(size(queue)))
stat(:) = 0