Skip to content

Commit

Permalink
* update meson.build file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed May 3, 2024
1 parent 8e78273 commit 5151286
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ message('The fc_id is:', fc_id)
compile_args = []
link_args = []

if build_machine.system() == 'windows'
if fc_id == 'gcc'
c_runtime_flag = 'false'
else
c_runtime_flag = 'true'
endif
else
c_runtime_flag = 'false'
endif

# Command line options for gfortran
if fc_id == 'gcc'
# General options
Expand Down Expand Up @@ -105,7 +115,7 @@ elif fc_id == 'intel-llvm-cl'
endif

# add the correct C/C++ CRT runtime on Windows based on profile
if build_machine.system() == 'windows'
if c_runtime_flag == 'true'
if get_option('debug') == 'true'
compile_args += ['/MTd']
else
Expand Down

0 comments on commit 5151286

Please sign in to comment.