Skip to content

Commit

Permalink
Fixed non-existing directory problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sgenie68 authored Jun 28, 2019
1 parent 97565c4 commit cd93ddf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/FindModuleWrappers/FindLibXml2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ if (LIBXML2_FIND_SYSTEM)
SET(INCS )
foreach(DIRSUFF _INCLUDE_DIRS _INCLUDES _INCLUDE_PATH _INCLUDE_DIR)
if (DEFINED LIBXML2${DIRSUFF})
LIST(APPEND INCS ${LIBXML2${DIRSUFF}})
foreach(FDIR ${LIBXML2${DIRSUFF}})
if( EXISTS ${FDIR} )
LIST(APPEND INCS ${FDIR})
endif()
endforeach()
endif()
endforeach()
my_stupid_package_dependent_message_function_debug_xml2("Include directories: ${INCS}")
Expand Down

0 comments on commit cd93ddf

Please sign in to comment.