[Qt-creator] [QtCreator] CMAKE_INSTALL_PREFIX overwritten with /usr/local

Tobias Hunger Tobias.Hunger at qt.io
Thu Oct 27 15:57:08 CEST 2016


On Thu, 2016-10-27 at 15:40 +0200, Christoph Mathys wrote:
> Hi!
> 
> Whenever I change the Kit-Settings in QtCreator, it wants to overwrite
> my cmake configuration, specifically it insists on passing
> CMAKE_INSTALL_PREFIX. I would like QtCreator to just call cmake
> without changing any cmake settings.

The only settings that creator wants to manage are:
QT_QMAKE_EXECUTABLE,
CMAKE_PREFIX_PATH,
CMAKE_C_COMPILER and
CMAKE_CXX_COMPILER

It does so in Tools>Options>Build & Run>Kits>CMake Configuration and makes these
variables point to the toolchains and Qt version you selected for the kit.

CMAKE_INSTALL_PREFIX is not found in the Creator sources.

> I found that for the compiler I can do that by clearing "CMake
> Configuration" in the "Build&Run / Configuration" dialogue.

If there is CMAKE_INSTALL_PREFIX set in the Kit's CMake Configuration, then it
was not creator that put it there.

> Is there a way to stop QtCreator from always passing
> CMAKE_INSTALL_PREFIX? Or if not, can it automatically use the value
> that is already configured in cmake instead of assuming /usr/local?

No idea, sorry. I do not know where that setting comes from in your setup. It is
definitely not set in mine.

Best Regards,
Tobias

-- 
Tobias Hunger, Senior Software Engineer | The Qt Company
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B


More information about the Qt-creator mailing list