How to change CLion build location
Hello guys,
Does anyone know how to change the build location CLion uses? No matter what I set in the CMakeLists.txt file, CLion always calls "/Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/iulian/Library/Caches/clion11/cmake/generated/e5dc5944/e5dc5944/Debug". I have tried setting CMAKE_RUNTIME_OUTPUT_DIRECTORY and CMAKE_LIBRARY_OUTPUT_DIRECTORY. I get the executable where I point it to (PROJECT_ROOT/build), but that's it.
How can this be changed?
Thanks,
Iulian
请先登录再写评论。
Hi Iulian.
If you want to collect project binaries in the specific location, you can specify Build Output path on the Settings | Build, Execution, Deployment | CMake tab.
Having your build directory in the non-default location is not supported yet. In general it's not possible with CMake. Will changing IDE system path could be a suitable workaround for you?
Also please see the issue in the tracker: https://youtrack.jetbrains.com/issue/CPP-3374
Hi Anna,
This is fine, I can stick to collecting the project binaries.
Thanks,
Iulian