Change CMake build directory
Posted: 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.
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.