Skip to content

Commit 70ae23d

Browse files
committed
Fix GeosLibrary to build in Release mode with NMake
1 parent d202ffb commit 70ae23d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/basemap/utils/GeosLibrary.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ def build(self, installdir=None, njobs=1):
173173
config_opts = [
174174
"-DCMAKE_INSTALL_PREFIX={0}".format(installdir),
175175
"-DGEOS_ENABLE_TESTS=OFF",
176+
"-DCMAKE_BUILD_TYPE=Release",
176177
]
177-
if os.name != "nt":
178-
config_opts.append("-DCMAKE_BUILD_TYPE=Release")
179-
elif self.version_tuple < (3, 6, 0):
178+
if os.name == "nt" and self.version_tuple < (3, 6, 0):
180179
config_opts = ["-G", "NMake Makefiles"] + config_opts
181180

182181
# Define build options.

0 commit comments

Comments
 (0)