Jump to content
  • Advertisement
Sign in to follow this  
Jan2go

Qt Creator does not honor CMAKE_MAKE_PROGRAM

This topic is 1475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently switched to Qt Creator as my IDE for gcc and MinGW builds. However I stumbled across a problem with the CMAKE_MAKE_PROGRAM variable.
I have compiled Ninja executables in my repository. I tell CMake to use the Ninja generator and call "set (CMAKE_MAKE_PROGRAM "${CMAKE_SOURCE_DIR}/buildtools/ninja/${platformdir}/ninja")" from the first CMakeLists.txt.
However, to build the code, Qt Creator simply invokes "ninja" and not my custom set executable like it is supposed to do.
Before switching to Qt Creator I was using Eclipse CDT which does not have any problems using the custom path for the make tool (there are some other issues though, which is why I want to switch to Qt Creator).

Has anybody experienced the same problem and by chance found a way to solve it (without changing the build steps manually every time)?

Share this post


Link to post
Share on other sites
Advertisement
I might be wrong but I think QtCreator always injects the compiler specified in the currently active kit (including switching the compiler when the active kit is changed).

Share this post


Link to post
Share on other sites

Yes, I found these kits later that day. It's not quite what I was looking for as it's not a portable solution. But so far it's the best one that I know of and it gets the job done.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!