Message: previous - next
Month: January 2012

Re: [trinity-devel] cmake options

From: Darrell Anderson <humanreadable@...>
Date: Fri, 6 Jan 2012 17:48:07 -0800 (PST)
> The tdenetwork package has a cmake option -DWITH_SPEEX.
> How do I add the specific location of the speex include
> files? With automake I would add this:
> --with-extra-includes=/usr/include/speex
> What is the equivalent directive in cmake?
> -DINCLUDE_DIRECTORIES="/usr/include/speex"

Thanks! I did not find that when I searched the web.

> Generally
> later there should be added a check via pkg_config in
> ConfigureChecks.cmake. so it would be handled out of the
> box.

Hmm. Same problem is going to happen with several other packages, such as amarok. In amarok there is a -DWITH_MP4V2 option, but I need to ensure cmake finds the header files in /usr/include/mp4v2 and not in /usr/include/mp4. I can use the -DINCLUDE_DIRECTORIES option, but seems cmake should be configured to look in that directory automatically. How do I revise the cmake files to look there automatically?