Skip to content

Commit 5a9240c

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent 6727aba commit 5a9240c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

meson.build

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ project('pydatastructs', 'cpp',
22
version : '1.0.1-dev',
33
default_options : ['cpp_std=c++17'])
44

5-
if host_machine.system() == 'windows'
6-
add_project_arguments('/MD', language: 'cpp')
7-
endif
85

96
python = import('python').find_installation(pure: false)
107

pydatastructs/utils/meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ python.install_sources(
1515
subdir: 'pydatastructs/utils/_backend'
1616
)
1717

18+
cpp_args = []
19+
if host_machine.system() == 'windows'
20+
cpp_args += ['/MD']
21+
endif
22+
1823
python.extension_module(
1924
'_nodes',
2025
[
2126
'_backend/cpp/nodes.cpp',
2227
],
28+
cpp_args: cpp_args,
2329
install: true,
2430
subdir: 'pydatastructs/utils/_backend/cpp'
2531
)

0 commit comments

Comments
 (0)