Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Jan 2, 2023
1 parent 2b1b586 commit fbc20f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions recipes/libmicrohttpd/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def generate(self):
if is_msvc(self):
tc = MSBuildToolchain(self)
tc.configuration = self._msvc_configuration
tc.properties["WholeProgramOptimization"] = "false"
tc.generate()
else:
VirtualBuildEnv(self).generate()
Expand Down Expand Up @@ -128,16 +129,14 @@ def _msvc_sln_folder(self):
def build(self):
apply_conandata_patches(self)
if is_msvc(self):
# No whole program optimization
#==============================
# TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
vcxproj_file = os.path.join(self._msvc_sln_folder, "libmicrohttpd.vcxproj")
replace_in_file(
self, vcxproj_file,
"<WholeProgramOptimization Condition=\"! $(Configuration.StartsWith('Debug'))\">true</WholeProgramOptimization>",
"",
)

#==============================
# TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
toolset = MSBuildToolchain(self).toolset
replace_in_file(
self, vcxproj_file,
Expand Down

0 comments on commit fbc20f3

Please sign in to comment.