Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does CLion store executable files?

People also ask

Where are CLion files stored?

By default, CLion stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory. However, you can change the location for storing those files, if necessary.

How do files work in CLion?

Make CLion the default app for specific file typesPress Ctrl+Alt+S to open the IDE settings and select Editor | File Types. Click Associate File Types with CLion and select the file extensions you want to open with the IDE. Click OK and close the dialog.

How do I open CLion files?

Ready to use Faster Files Now that Faster Files is enabled, you can go to Clio and open a document. Just click the F icon next to the document we want to open. Your browser may prompt you to allow the document to be opened with Faster Files.

How do I save a CPP file in CLion?

Open CLion and then choose File ->New Project. You will now see a screen where it asks you to choose where to save the project. Also, the project is called “untitled” by default.


When you build under CLion,

enter image description here

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:

enter image description here

(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")