[Development] Getting build flags for platforms without pkg-config

Stephen Kelly steveire at gmail.com
Mon Oct 30 23:32:55 CET 2017


Thiago Macieira wrote:

> On segunda-feira, 30 de outubro de 2017 08:27:02 PDT Konstantin Tokarev
> wrote:
>> >>  $ cmake --find-package -DNAME=Qt5Core -DCOMPILER_ID=GNU
>> >>  -DLANGUAGE=CXX -DMODE=COMPILE
>> >>  -I/home/apol/devel/kde5/include/
>> >>  -I/home/apol/devel/kde5/include/QtCore
>> >>  -I/home/apol/devel/kde5/lib64//mkspecs/linux-g++
>> > 
>> > -DQT_CORE_LIB is missing. Any volunteers to add it to the cmake files?
>> 
>> It is already set:
> 
> If it's already set, why is it missing?
> 

The 

 cmake --find-package

option predates a lot of more-modern CMake stuff. In general I don't think 
cmake --find-package should be recommended.

Thanks,

Steve.





More information about the Development mailing list