cmake output dir

Hey guys ,

First of all thanks for doing a great ide , really need it.

Small question: how exactly I am redirecting the build
output of the project ? can't find any option for this , it just
goes to  [ ~/.clion10/system/cmake/generated/11fef6b7/11fef6b7/Debug/project_name ]

Thanks
Roman.

0

Hello, and thank you!

Just set a proper output directory with the CMake command like this:
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "/path/my_dir")
in your CMakeLists.txt file.

0

Yeah , sure I can change my cmake,
but the question is if the ide can provide
the sandbox env for the run ,
that the param will be set not in the make file.

0

Glad you have a plan for letting us configure it but the default really should be to generate output files in the project directory, not off under the IDE's configuration directory in my user's home directory -- that's just weird and unexpected bahavior.

0

Taken into consideration that users can share the project sources and put them under VCS we don't think it's so obvious about the default.

0

What does sharing projects and using VCS have to do with hiding the generated output files (really, the whole point of this exercise) under what is typically considered a user-level config directory.

Look at how Intellij handles output of its compiled classes. They go in a designated directory under the project directory. And yet you can still share projects and use VCS in Intellij. Look at how every tarball for libraries or applications that you download or check out of sorceforge or some other VCS builds inside the project directory.

That is the expected behavior. What you are doing is unexpected and should not be the default.

0

Ok, all your words sound really reasonable. May be we should consider the in-source build as a default. Could you please add the request to the tracker http://youtrack.jetbrains.com/issues/CPP ?

0

Done. CPP-1045 Default build output directory should be within project directory. And thanks for giving us the opportunity to help.

0

Thanks guys , I'll be happy to test it in the future.

0

请先登录再写评论。