Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36f768e

Browse files
committed
Add /EHsc to GEOS CXX flags on Windows
1 parent 6bf7664 commit 36f768e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/basemap/utils/GeosLibrary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def build(self, installdir=None, njobs=1):
242242

243243
# Define custom configure and build options.
244244
if os.name == "nt":
245-
config_opts += ["-DCMAKE_CXX_FLAGS='/wd4251 /wd4458 /wd4530'"]
245+
config_opts += ["-DCMAKE_CXX_FLAGS='/wd4251 /wd4458 /wd4530 /EHsc'"]
246246
if version >= (3, 6, 0) and sys.version_info[:2] >= (3, 3):
247247
build_opts = ["-j", "{0:d}".format(njobs)] + build_opts
248248
else:

0 commit comments

Comments
 (0)