Code::blocks: parallel build from IDE

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Code::blocks: parallel build from IDE

Dimitri Kaparis
Greetings,

I'm using the "CodeBlocks - Unix Makefiles" generator under linux to create a build tree for my project consisting of multiple executables and libraries.
From the command line, I could use make -jN switch from the root of the build tree to invoke a full build in parallel, but I see no way of doing that from the Code Blocks IDE.

In the "Project build options" window, under "Make commands" tab, there is a box to specify a "Build project/target" command, where I can add -j switch to make. But that box is only editable for individual executable and library subprojects, while for virtual CMake-generated targets, such as "all", it is disabled.

Any ideas?

Regards,
Dimitri


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Code::blocks: parallel build from IDE

Alexander Neundorf-3
On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote:
> Greetings,
>
> I'm using the "CodeBlocks - Unix Makefiles" generator under linux to create
> a build tree for my project consisting of multiple executables and
> libraries.
> From the command line, I could use make -jN switch from the root of the
> build tree to invoke a full build in parallel, but I see no way of doing
> that from the Code Blocks IDE.

Oops, sorry, that's not implemented for C::B.

Alex

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Code::blocks: parallel build from IDE

Dimitri Kaparis
On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf <[hidden email]> wrote:
On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote:
> Greetings,
>
> I'm using the "CodeBlocks - Unix Makefiles" generator under linux to create
> a build tree for my project consisting of multiple executables and
> libraries.
> From the command line, I could use make -jN switch from the root of the
> build tree to invoke a full build in parallel, but I see no way of doing
> that from the Code Blocks IDE.

Oops, sorry, that's not implemented for C::B.

Alex


Any plans on it, or an idea for a workaround?

Thanks,
Dimitri

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Code::blocks: parallel build from IDE

Nils Gladitz-2
On 17.01.2016 12:45, Dimitri Kaparis wrote:
On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf <[hidden email]> wrote:

Oops, sorry, that's not implemented for C::B.

Alex


Any plans on it, or an idea for a workaround?

As a workaround perhaps "CodeBlocks - Ninja" would be an option?
ninja builds parallel by default.

Nils

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Code::blocks: parallel build from IDE

Alexander Neundorf-3
In reply to this post by Dimitri Kaparis
On Sunday, January 17, 2016 13:45:34 Dimitri Kaparis wrote:

> On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf <[hidden email]>
> wrote:
> > On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote:
> > > Greetings,
> > >
> > > I'm using the "CodeBlocks - Unix Makefiles" generator under linux to
> >
> > create
> >
> > > a build tree for my project consisting of multiple executables and
> > > libraries.
> > > From the command line, I could use make -jN switch from the root of the
> > > build tree to invoke a full build in parallel, but I see no way of doing
> > > that from the Code Blocks IDE.
> >
> > Oops, sorry, that's not implemented for C::B.
> >
> > Alex
>
> Any plans on it,

yes, but not commited yet.

Alex

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Code::blocks: parallel build from IDE

Alexander Neundorf-3
On Sunday, January 17, 2016 14:01:59 Alexander Neundorf wrote:

> On Sunday, January 17, 2016 13:45:34 Dimitri Kaparis wrote:
> > On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf
> > <[hidden email]>>
> > wrote:
> > > On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote:
> > > > Greetings,
> > > >
> > > > I'm using the "CodeBlocks - Unix Makefiles" generator under linux to
> > >
> > > create
> > >
> > > > a build tree for my project consisting of multiple executables and
> > > > libraries.
> > > > From the command line, I could use make -jN switch from the root of
> > > > the
> > > > build tree to invoke a full build in parallel, but I see no way of
> > > > doing
> > > > that from the Code Blocks IDE.
> > >
> > > Oops, sorry, that's not implemented for C::B.
> > >
> > > Alex
> >
> > Any plans on it,
>
> yes, but not commited yet.

it's in next now.
CMake now tries to figure out the number of CPUs, and sets the (new) cache
variable CMAKE_CODEBLOCKS_MAKE_ARGUMENTS to "-jN".
If you don't like the result, you can set it to something else.

Alex


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake