building CMake project with external configuration file in Qt Creator
-
wrote on 13 Aug 2021, 14:47 last edited by
I'm trying to use an existing CMake project in QtCreator. There is something that I haven't figured out yet when importing:
We store the settings for different configurations in separate .cmake-Files which I would usually provide on the commandline using cmake -C configurations/xy.cmake . I tried to add this (-C ...) to the "initial CMake Parameters" list in "build" tab but seems that the file was not used. How can I do this?
-
wrote on 16 Aug 2021, 04:39 last edited by
You are using a relative path, so that will break if the working directory is not where you think it is (e.g. it is the build output directory and not the source directory). Try using an absolute path as an experiment.
1/2