Using CMake + Ninja (custom build option)
Posted: Fri Aug 03, 2018 12:43 am
Hello,
I'm working on Windows 7, trying to use CodeLite 12.04 with CMake 3.12 to create Ninja build files, then use CodeLite to start the Ninja build job.
I'm able to get the whole process to work fine when I use the command line to invoke CMake and Ninja manually.
However, the only way I have found to run Ninja from within the IDE is to enable the custom build option. Unfortunately, when I do that, the CMakeLists.txt file that CodeLite exports is incomplete. It only contains just a couple of lines describing project name and default locations, but none of the actual project settings or filenames. As a result, Ninja just reports that there is no work to do.
To compile the project from within the IDE, I have to disable the custom build option, run/export CMake, then re-enable custom build to run Ninja.
Is there a way I can get this to work without having to toggle the custom build option all the time?
I'm working on Windows 7, trying to use CodeLite 12.04 with CMake 3.12 to create Ninja build files, then use CodeLite to start the Ninja build job.
I'm able to get the whole process to work fine when I use the command line to invoke CMake and Ninja manually.
However, the only way I have found to run Ninja from within the IDE is to enable the custom build option. Unfortunately, when I do that, the CMakeLists.txt file that CodeLite exports is incomplete. It only contains just a couple of lines describing project name and default locations, but none of the actual project settings or filenames. As a result, Ninja just reports that there is no work to do.
To compile the project from within the IDE, I have to disable the custom build option, run/export CMake, then re-enable custom build to run Ninja.
Is there a way I can get this to work without having to toggle the custom build option all the time?