Skip to content

Commit 8f2d19a

Browse files
committed
Fix: output path for Windows
Remove hard-coded forward slash.
1 parent 75f8eda commit 8f2d19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fpm/src/fpm.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ subroutine build_model(model, settings, package, error)
171171
model%fortran_compiler = 'gfortran'
172172

173173
if(settings%release)then
174-
model%output_directory = 'build/gfortran_release'
174+
model%output_directory = join_path('build','gfortran_release')
175175
model%fortran_compile_flags=' &
176176
& -O3 &
177177
& -Wimplicit-interface &
@@ -181,7 +181,7 @@ subroutine build_model(model, settings, package, error)
181181
& -funroll-loops ' // &
182182
& '-J'//join_path(model%output_directory,model%package_name)
183183
else
184-
model%output_directory = 'build/gfortran_debug'
184+
model%output_directory = join_path('build','gfortran_debug')
185185
model%fortran_compile_flags = ' -Wall -Wextra -Wimplicit-interface -fPIC -fmax-errors=1 -g '// &
186186
'-fbounds-check -fcheck-array-temporaries -fbacktrace '// &
187187
'-J'//join_path(model%output_directory,model%package_name)

0 commit comments

Comments
 (0)