Ask Your Question
3

What steps can be taken to reset the output directory of an executable file in CLion IDE, without involving the configuration type?

asked 2022-01-27 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-09 09:00:00 +0000

qstack gravatar image

To reset the output directory of an executable file in CLion IDE, you can follow these steps:

  1. In the project view, right-click on the executable file and select "Properties" from the context menu.
  2. In the properties dialog, click on the "C/C++ Application" tab.
  3. Under the "Target" section, you will see the current output directory. Click on the "Browse" button next to it.
  4. Navigate to the new output directory and click "OK".
  5. Click "Apply" to save the changes and close the dialog.

Alternatively, you can modify the CMakeLists.txt file directly to specify the new output directory. Simply add the line below to the CMakeLists.txt file and replace the "path/to/new/directory" with the actual path to the new output directory.

set(CMAKERUNTIMEOUTPUT_DIRECTORY "path/to/new/directory")

Be sure to save the changes and reload the CMake project in CLion to apply the new output directory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-27 11:00:00 +0000

Seen: 7 times

Last updated: Oct 09 '22