Skip to content

Commit

Permalink
Inject libidn2 defines to executables
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Sep 6, 2024
1 parent 8a7ab17 commit 2d4af44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/getdns/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def generate(self):
tc.blocks["cmake_flags_init"].template += '\nstring(APPEND CMAKE_C_FLAGS_INIT " -Wno-incompatible-function-pointer-types")'
if self.options.with_libidn2 and is_msvc(self):
# INFO: getdns_static.lib(convert.c.obj): error LNK2019: unresolved external symbol __imp_idn2_lookup_u8
tc.preprocessor_definitions.extend(self.dependencies["libidn2"].cpp_info.defines)
tc.preprocessor_definitions.update({it: 1 for it in self.dependencies["libidn2"].cpp_info.defines})
tc.generate()

deps = CMakeDeps(self)
Expand Down

0 comments on commit 2d4af44

Please sign in to comment.