[CMake] libxml2

Charlene Tsai tsaicharlene at gmail.com
Mon Dec 10 21:24:27 EST 2007


Hi,

Could some please show me the proper way to handle libxml2 on Gentoo
linux. In my CMakeLists.txt, if I include the following line it works
on windows and some versions of linux:

  TARGET_LINK_LIBRARIES( my_exe ITKCommon ITKIO libxml2)

However, when trying to compile on Gentoo linux (using gcc 4.1.2) it
complains about not being able to find libxml2.so for linking, unless
I change it to:

TARGET_LINK_LIBRARIES( my_exe ITKCommon ITKIO xml2)

Any advice is appreciated.

Charlene


More information about the CMake mailing list