Skip to content

Commit fbc20f3

Browse files
committed
small change
1 parent 2b1b586 commit fbc20f3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

recipes/libmicrohttpd/all/conanfile.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def generate(self):
9292
if is_msvc(self):
9393
tc = MSBuildToolchain(self)
9494
tc.configuration = self._msvc_configuration
95+
tc.properties["WholeProgramOptimization"] = "false"
9596
tc.generate()
9697
else:
9798
VirtualBuildEnv(self).generate()
@@ -128,16 +129,14 @@ def _msvc_sln_folder(self):
128129
def build(self):
129130
apply_conandata_patches(self)
130131
if is_msvc(self):
131-
# No whole program optimization
132+
#==============================
133+
# TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
132134
vcxproj_file = os.path.join(self._msvc_sln_folder, "libmicrohttpd.vcxproj")
133135
replace_in_file(
134136
self, vcxproj_file,
135137
"<WholeProgramOptimization Condition=\"! $(Configuration.StartsWith('Debug'))\">true</WholeProgramOptimization>",
136138
"",
137139
)
138-
139-
#==============================
140-
# TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
141140
toolset = MSBuildToolchain(self).toolset
142141
replace_in_file(
143142
self, vcxproj_file,

0 commit comments

Comments
 (0)