how to override the build folder per project via cmake ?
Answered
Hi,
I'm trying to specify a different build folder for each of my projects.
In each of the projects, for a target I set :
set_target_properties(my_target_name
PROPERTIES
CMAKE_RUNTIME_OUTPUT_DIRECTORY, ${CMAKE_SOURCE_DIR}/../../../../../the_build_folder_for_this_project/
)
but Clion seems not to get this target property and continues outputting in the default build directory cmake-build-debug
Is already a way to do this ?
Or are you going to add this new feature : allow users to build each project also in a specific folder if they wish so ?
Thanks,
Marco
Please sign in to leave a comment.
Hello!
You can change the build directory in CMake profile (File | Settings | Build, Execution, Deployment | CMake) - https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#profiles.