Skip to content

Explicitly use the BUILD_INTERFACE generator expression when passing the…

David Richard Shope requested to merge libxml2_fix into master

Explicitly use the BUILD_INTERFACE generator expression when passing the LIBXML2_LIBRARIES variable when generating definitions.h

Also needed for now to add a hacky bit of string parsing in generateLocals.py

For some reason, for AnalysisBase,21.2.9 and above, the LIBXML2_LIBRARIES CMake variable gets set to $<BUILD_INTERFACE:/usr/lib64/libxml2.so>;$<INSTALL_INTERFACE:/usr/lib64/libxml2.so> instead of just /usr/lib64/libxml2.so for previous releases. In addition, starting in 21.2.16, it seems that the libxml2 gets picked up from the underlying AnalysisBase instead of the local copy, since in this case the LIBXML2_LIBRARIES gets set to the following instead: $<BUILD_INTERFACE:/cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.16/InstallArea/x86_64-slc6-gcc62-opt/lib/libxml2.so>;$<INSTALL_INTERFACE:/cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.16/InstallArea/x86_64-slc6-gcc62-opt/lib/libxml2.so> However, this last point is a bit of a separate issue.

closes #32 (closed)

Edited by David Richard Shope

Merge request reports