On 02/09/2023 16:29, Nuno Santos wrote:
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?

How?

Thanks!

Nuno

I have for Qt Creator itself the following:

-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX};c:/llvm/msvc

The CMake documentation <https://cmake.org/cmake/help/latest/variable/CMAKE_PREFIX_PATH.html> states:

   Semicolon-separated list
   
<https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#cmake-language-lists>of
   directories specifying installation/prefixes/to be searched by
   the|find_package()|
   
<https://cmake.org/cmake/help/latest/command/find_package.html#command:find_package>,|find_program()|
   
<https://cmake.org/cmake/help/latest/command/find_program.html#command:find_program>,|find_library()|
   
<https://cmake.org/cmake/help/latest/command/find_library.html#command:find_library>,|find_file()|
   
<https://cmake.org/cmake/help/latest/command/find_file.html#command:find_file>,
   and|find_path()|
   
<https://cmake.org/cmake/help/latest/command/find_path.html#command:find_path>commands.
   Each command will add appropriate subdirectories (like|bin|,|lib|,
   or|include|) as specified in its own documentation.

   By default this is empty. It is intended to be set by the project.

Cheers,
Cristian.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to