How to override --target on CMake build command line
Answered
When I start a build, I can see the CMake command in the Messages pane:
C:\Users\pturley\AppData\Local\Programs\CLion\bin\cmake\win\x64\bin\cmake.exe --build C:\Workspace\gs\build\cmake-build-debug --target all -j 30
I want to change the target from all to something else. I tried providing my own --target argument in my CMake Settings, but that just put two --target options on the command line — it didn't override the all target.
I've poked around but, from what I can tell, there is not currently a way to override the target passed to the CMake build command line.
Am I wrong?
Please sign in to leave a comment.
Hello,
The key target cannot be overwritten in the CMake settings.
The target can be configured in the Run/Debug configuration.