Skip to content

Commit

Permalink
[SCons] Fix version parsing with system SUNDIALS on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Aug 3, 2024
1 parent 520267d commit 5916d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ if env['system_sundials'] == 'y':
retcode, sundials_version = conf.TryRun(sundials_version_source, '.cpp')
if retcode == 0:
config_error("Failed to determine Sundials version.")
env["sundials_version"] = sundials_version.strip(' "\n')
env["sundials_version"] = sundials_version.strip(' "\r\n')

sundials_ver = parse_version(env['sundials_version'])
if sundials_ver < parse_version("3.0") or sundials_ver >= parse_version("8.0"):
Expand Down

0 comments on commit 5916d89

Please sign in to comment.