Clean calls cmake --build

问题描述 投票:6回答:1
--target clean -- -j 4 Is there a way ...

action is depends on Project Mode. If you opened CMake project it will always running make clean, but you can create your own External tool and put it in Run | Clean menu.

cmake --build <dir> --target clean -- -j 4

Create a tool in Run | CleanPreferences

add_custom_target(make-clean ALL COMMAND make -C ${mytest_SOURCE_DIR} clean)

cmake clion
1个回答
0
投票

Run | Clean有没有办法让 cmake --build <dir> --target clean -- -j 4 而不是运行一个自定义目标?例如,一个被定义为。Run

  1. 我正在调用一个现有的Makefile进行构建 所以为了重建,我需要先调用make clean。我看到运行
© www.soinside.com 2019 - 2024. All rights reserved.