[CMake] libxml2

Maik Beckmann maikbeckmann at gmx.de
Tue Dec 11 02:35:17 EST 2007


Am Dienstag 11 Dezember 2007 03:24:27 schrieb Charlene Tsai:
> on windows and some versions of linux:
>
>   TARGET_LINK_LIBRARIES( my_exe ITKCommon ITKIO libxml2)

I wonder that this worked on linux at all.

> on Gentoo linux 
>
> TARGET_LINK_LIBRARIES( my_exe ITKCommon ITKIO xml2)

This statement is correct. For gcc it will result on compiler parameters like
  .. -lITKCommon -lITKIO -lxml2 ..
and gcc will search for 
  - libxml2.so*
  - libxml2.a
and IIRC 
  - xml.dll
on windows.

Did you try
  TARGET_LINK_LIBRARIES( my_exe ITKCommon ITKIO xml2)
on the other linux versions and/or windows?

Best,
 -- Maik





More information about the CMake mailing list