Change CMake build directory

General questions regarding the usage of CodeLite
AbdelrahmanSaid
CodeLite Curious
Posts: 2
Joined: Thu Apr 09, 2020 3:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

Change CMake build directory

Post by AbdelrahmanSaid » Thu Apr 09, 2020 5:45 pm

Hi,

I wanted to see if there is a way I can change the default build directory for a CMake project. Currently, everything goes to the cmake-build_$(ConfigurationName) folder. I can change the binary output directory by tweaking the CMakeLists.tx file, but I can't seem to find a way in the Project Settings or using CMakeLists.txt to define where the intermediate files (such as the Makefile and the object files) would end up. They always go to cmake-build_$(ConfigurationName).

I don't really need that for anything specific. I am just trying to better understand how CodeLite works since I am fairly new to using it.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change CMake build directory

Post by eranif » Thu Apr 09, 2020 6:26 pm

It's currently hard coded.
I can make the *name* configurable, but the *path* can't be changed
Make sure you have read the HOW TO POST thread

AbdelrahmanSaid
CodeLite Curious
Posts: 2
Joined: Thu Apr 09, 2020 3:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Change CMake build directory

Post by AbdelrahmanSaid » Thu Apr 09, 2020 11:24 pm

eranif wrote:
Thu Apr 09, 2020 6:26 pm
It's currently hard coded.
I can make the *name* configurable, but the *path* can't be changed
I see. Thanks for clarifying that. I thought that is the case but wanted to make sure I am not missing something.

Post Reply