aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLKedward <laurence.kedward@bristol.ac.uk>2020-12-05 17:06:40 +0000
committerLKedward <laurence.kedward@bristol.ac.uk>2020-12-05 17:21:04 +0000
commit8f2d19af16e06cfb5f54d9df548237b2cb7ab2f5 (patch)
tree33d04784a209ed65af381430cb5c5cb0be386e62
parent75f8eda5115f3f5160d8aeda63f72d7c852684f7 (diff)
downloadfpm-8f2d19af16e06cfb5f54d9df548237b2cb7ab2f5.tar.gz
fpm-8f2d19af16e06cfb5f54d9df548237b2cb7ab2f5.zip
Fix: output path for Windows
Remove hard-coded forward slash.
-rw-r--r--fpm/src/fpm.f904
1 files changed, 2 insertions, 2 deletions
diff --git a/fpm/src/fpm.f90 b/fpm/src/fpm.f90
index b94d25f..e041924 100644
--- a/fpm/src/fpm.f90
+++ b/fpm/src/fpm.f90
@@ -171,7 +171,7 @@ subroutine build_model(model, settings, package, error)
model%fortran_compiler = 'gfortran'
if(settings%release)then
- model%output_directory = 'build/gfortran_release'
+ model%output_directory = join_path('build','gfortran_release')
model%fortran_compile_flags=' &
& -O3 &
& -Wimplicit-interface &
@@ -181,7 +181,7 @@ subroutine build_model(model, settings, package, error)
& -funroll-loops ' // &
& '-J'//join_path(model%output_directory,model%package_name)
else
- model%output_directory = 'build/gfortran_debug'
+ model%output_directory = join_path('build','gfortran_debug')
model%fortran_compile_flags = ' -Wall -Wextra -Wimplicit-interface -fPIC -fmax-errors=1 -g '// &
'-fbounds-check -fcheck-array-temporaries -fbacktrace '// &
'-J'//join_path(model%output_directory,model%package_name)