Page 1 of 1

Change CMake build directory

Posted: Thu Apr 09, 2020 5:45 pm
by AbdelrahmanSaid
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.

Re: Change CMake build directory

Posted: Thu Apr 09, 2020 6:26 pm
by eranif
It's currently hard coded.
I can make the *name* configurable, but the *path* can't be changed

Re: Change CMake build directory

Posted: Thu Apr 09, 2020 11:24 pm
by AbdelrahmanSaid
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.