aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_targets.f90
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-07-16 11:07:16 +0100
committerGitHub <noreply@github.com>2021-07-16 11:07:16 +0100
commit68937a4eae6a71b74edbf762c574cc2dc22bb2d6 (patch)
treee61837e75eeb361af0c3624a7f28169a9d06bf60 /src/fpm_targets.f90
parent5617e65751193afb3c88fbc6cb8a32822ff52ffa (diff)
parent87271c5a55ad6412114c4b153c1a8d0bd37156f5 (diff)
downloadfpm-68937a4eae6a71b74edbf762c574cc2dc22bb2d6.tar.gz
fpm-68937a4eae6a71b74edbf762c574cc2dc22bb2d6.zip
Merge pull request #511 from urbanjost/warn_blank_name
check name used for package, executable, test, or example
Diffstat (limited to 'src/fpm_targets.f90')
-rw-r--r--src/fpm_targets.f906
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90
index c247232..66bbdd5 100644
--- a/src/fpm_targets.f90
+++ b/src/fpm_targets.f90
@@ -25,7 +25,7 @@
!>
module fpm_targets
use iso_fortran_env, only: int64
-use fpm_error, only: error_t, fatal_error
+use fpm_error, only: error_t, fatal_error, fpm_stop
use fpm_model
use fpm_environment, only: get_os_type, OS_WINDOWS
use fpm_filesystem, only: dirname, join_path, canon_path
@@ -298,7 +298,7 @@ subroutine add_target(targets,type,output_file,source,link_libraries)
write(*,*) 'Error while building target list: duplicate output object "',&
output_file,'"'
if (present(source)) write(*,*) ' Source file: "',source%file_name,'"'
- stop 1
+ call fpm_stop(1,' ')
end if
@@ -341,7 +341,7 @@ end subroutine add_dependency
!>
!> - Executable sources (`FPM_SCOPE_APP`,`FPM_SCOPE_TEST`) may use
!> library modules (including dependencies) as well as any modules
-!> corresponding to source files in the same directory or a
+!> corresponding to source files in the same directory or a
!> subdirectory of the executable source file.
!>
!> @warning If a module used by a source file cannot be resolved to