Skip to content

Commit

Permalink
* update meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed May 6, 2024
1 parent 969ed29 commit 626edd6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ else
endif
message('The used profile is:', profile)

is_debug = get_option('debug')
message('Building debug version:', is_debug)

# parse compiler options
fc = meson.get_compiler('fortran')
fc_id = fc.get_id()
Expand Down Expand Up @@ -78,10 +75,10 @@ if fc_id == 'intel-cl'
'/Qdiag-disable:10448',# ifort deprecation warning
]
# add the correct C/C++ CRT runtime on Windows based on profile
if is_debug
compile_args += '/MTd'
else
if profile == 'release'
compile_args += '/MT'
else
compile_args += '/MTd'
endif
link_args += ['/ignore:4217', # access through ddlimport might be inefficient
'/ignore:4286' # same as 4217, but more general
Expand Down

0 comments on commit 626edd6

Please sign in to comment.