Where does CLion store executable files?

一个人想着一个人 提交于 2019-11-28 04:49:54

When you build under CLion,

It prints the path it sends the executable to the Console:

-- Build files have been written to: /home/<user>/.clion10/system/cmake/generated/8bd932b1/8bd932b1/Debug1

To change this File > Settings..., and under CMake settings, enter the desired subdirectory name (e.g., 'bin') in the Working directory field:

(You may require Run > Clean before the new output path is used.)

When you run the program, it shows the location at the top of the Run window:

/home/me/.clion10/system/cmake/generated/ad2f5c60/ad2f5c60/Debug/HelloCLion
Hello, World!

Process finished with exit code 0

You can modify this location by changing CMAKE_RUNTIME_OUTPUT_DIRECTORY:

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "/home/me/ClionProjects/Binaries")
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!