Skip to content

Commit

Permalink
(conan-io#24649) libxml2: fix include dirs in CMake config file
Browse files Browse the repository at this point in the history
If libxml2_INCLUDE_DIRS is defined, it should be used to set
the variables related to the preprocessor's include directories,
rather than the variables related to the linker.
  • Loading branch information
fpoirotte authored Jul 24, 2024
1 parent 91f01b1 commit 29d1173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/libxml2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def _create_cmake_module_variables(self, module_file):
set(LIBXML2_INCLUDE_DIR ${{LibXml2_INCLUDE_DIRS}})
set(LIBXML2_INCLUDE_DIRS ${{LibXml2_INCLUDE_DIRS}})
elseif(DEFINED libxml2_INCLUDE_DIRS)
set(LIBXML2_LIBRARIES ${{libxml2_INCLUDE_DIRS}})
set(LIBXML2_LIBRARY ${{libxml2_INCLUDE_DIRS}})
set(LIBXML2_INCLUDE_DIR ${{libxml2_INCLUDE_DIRS}})
set(LIBXML2_INCLUDE_DIRS ${{libxml2_INCLUDE_DIRS}})
endif()
if(DEFINED LibXml2_LIBRARIES)
set(LIBXML2_LIBRARIES ${{LibXml2_LIBRARIES}})
Expand Down

0 comments on commit 29d1173

Please sign in to comment.