trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-devel] cmake options

From: "Timothy Pearson" <kb9vqf@...>
Date: Fri, 6 Jan 2012 23:11:29 -0600
> Fat-Zer wrote:
>> 2012/1/7 Darrell Anderson <humanreadable@...>
>>
>>> 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?
>>>
>>
>> Just add this to ConfigureChecks.cmake:
>>
>> if( WITH_SPEEX )
>>   pkg_search_module( SPEEX speex )
>>   if( NOT SPEEX_FOUND )
>>     tde_message_fatal( "speex is required, but was not found on your
>> system" )
>>   endif( NOT SPEEX_FOUND )
>> endif( WITH_SPEEX )
>>
>> # haven't tested but should work.
>> # and check the name of speex *.pc file in /usr/lib/pkgconfig.
>
> Why make it a fatal error when it can be built without speex?
>
>    -- Bruce

There should be a global flag defined (WITH_SPEEX) if speex support is
desired.  If that flag is not set then there will be no fatal error when
speex is not found.

Tim