[Interest] QtCreator - CMAKE_PREFIX_PATH with multiple paths
Richard Weickelt
richard at weickelt.de
Thu Feb 9 17:15:13 CET 2023
Hi,
>> Is anyone able to tell me if QtCreator is able to have a CMAKE var defined with multiple values?
>>
>> The default value for a project is %{Qt:QT_INSTALL_PREFIX}, is it possible to append more paths?
> I have for Qt Creator itself the following:
>
> -DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX};c:/llvm/msvc
Instead of mashing different paths in CMAKE_PREFIX_PATH, I suggest to define
one <PackageName>_ROOT variable per dependency. That's more explicit and IMO
much easier to maintain. Using one global CMAKE_PREFIX_PATH separated with
semicolons feels a bit old-fashioned.
More information about the Interest
mailing list