Skip to content

Commit b3be021

Browse files
committed
Make GEOS CMake-based compilation on Windows quiet
1 parent 1124d08 commit b3be021

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/basemap/utils/GeosLibrary.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +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'"]
245246
if version >= (3, 6, 0) and sys.version_info[:2] >= (3, 3):
246247
build_opts = ["-j", "{0:d}".format(njobs)] + build_opts
247248
else:
@@ -256,7 +257,7 @@ def build(self, installdir=None, njobs=1):
256257
else:
257258
build_env["MAKEFLAGS"] = "-j {0:d}".format(njobs)
258259
if version >= (3, 7, 0):
259-
config_opts += ["-DCMAKE_CXX_FLAGS=-fPIC"]
260+
config_opts += ["-DCMAKE_CXX_FLAGS='-fPIC'"]
260261

261262
# Call cmake configure after ensuring that the build directory exists.
262263
try:

0 commit comments

Comments
 (0)