How to tell CMake which libpng.dylib to use?

Mojca Miklavec mojca at macports.org
Wed Jan 23 06:02:20 PST 2013


On Tue, Jan 22, 2013 at 2:17 PM, Jeremy Lavergne wrote:
>> setting CMake
>> -D flags in the PortGroup files is about as good as we can do, then
>> setting specific variables on a port-by-port basis.  At least IMHO and
>> experience; that said, I'm certainly open to suggestions by others. -
>
> I recall we had shoved many of these flags into the KDE PortGroup.
>
> Since they're universal and it is not an error to define -D flags that are not used, perhaps we should have a proc or variable in Cmake's PortGroup which defines any variables that we come across. Then by using the cmake PortGroup a port will have these available.

I support that idea. (I will also ask for opinion on the CMake list.)

Mojca


More information about the macports-dev mailing list