aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-12-23 09:55:15 -0700
committerOndřej Čertík <ondrej@certik.us>2020-12-23 09:55:15 -0700
commit39818aa5c174a3cc5d8ee2327c10162ab440ce96 (patch)
tree4e9e6d5c5435a45124ec01a1eee00704a3a967de
parent8faaa90082ea17c0ea4a774ed0eb58adb8cf44c3 (diff)
downloadfpm-39818aa5c174a3cc5d8ee2327c10162ab440ce96.tar.gz
fpm-39818aa5c174a3cc5d8ee2327c10162ab440ce96.zip
Print target_type as a string
-rw-r--r--fpm/src/fpm_model.f9014
1 files changed, 13 insertions, 1 deletions
diff --git a/fpm/src/fpm_model.f90 b/fpm/src/fpm_model.f90
index 2963b97..3ad6dff 100644
--- a/fpm/src/fpm_model.f90
+++ b/fpm/src/fpm_model.f90
@@ -224,7 +224,19 @@ if (allocated(t%dependencies)) then
end if
s = s // "]"
! integer :: target_type = FPM_TARGET_UNKNOWN
-s = s // ", target_type=" // str(t%target_type)
+s = s // ", target_type="
+select case(t%target_type)
+case (FPM_TARGET_UNKNOWN)
+ s = s // "FPM_TARGET_UNKNOWN"
+case (FPM_TARGET_EXECUTABLE)
+ s = s // "FPM_TARGET_EXECUTABLE"
+case (FPM_TARGET_ARCHIVE)
+ s = s // "FPM_TARGET_ARCHIVE"
+case (FPM_TARGET_OBJECT)
+ s = s // "FPM_TARGET_OBJECT"
+case default
+ s = s // "INVALID"
+end select
! type(string_t), allocatable :: link_libraries(:)
s = s // ", link_libraries=["
if (allocated(t%link_libraries)) then