<p dir="ltr">Hi Steve,</p>
<p dir="ltr">On Feb 8, 2016 10:48, "Steve Lhomme" <<a href="mailto:robux4@videolabs.io">robux4@videolabs.io</a>> wrote:<br>
><br>
> From: Steve Lhomme <<a href="mailto:robux4@gmail.com">robux4@gmail.com</a>><br>
><br>
> otherwise mode_t may not be defined<br>
> ---<br>
>  extras/tools/cmake-3.2.3.patch | 10 ++++++++++<br>
>  extras/tools/tools.mak         |  3 ++-<br>
>  2 files changed, 12 insertions(+), 1 deletion(-)<br>
>  create mode 100644 extras/tools/cmake-3.2.3.patch<br>
><br>
> diff --git a/extras/tools/cmake-3.2.3.patch b/extras/tools/cmake-3.2.3.patch<br>
> new file mode 100644<br>
> index 0000000..b697cc2<br>
> --- /dev/null<br>
> +++ b/extras/tools/cmake-3.2.3.patch<br>
> @@ -0,0 +1,10 @@<br>
> +--- cmake/Source/cmGeneratorExpressionEvaluationFile.h.orig    2016-02-04 11:47:52.735890500 +0100<br>
> ++++ cmake/Source/cmGeneratorExpressionEvaluationFile.h 2016-02-04 11:46:06.493912300 +0100<br>
> +@@ -14,6 +14,7 @@<br>
> +<br>
> + #include "cmStandardIncludes.h"<br>
> + #include <cmsys/auto_ptr.hxx></p>
<p dir="ltr">It is usually a good idea to surround this with #if HAVE_SYS_TYPES_H, however I'm not sure if cmake's configury tests for that.</p>
<p dir="ltr">> ++#include <sys/types.h><br>
> +<br>
> + #include "cmGeneratorExpression.h"<br>
> +<br>
> diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak<br>
> index 69a8d2d..c782ed7 100644<br>
> --- a/extras/tools/tools.mak<br>
> +++ b/extras/tools/tools.mak<br>
> @@ -65,10 +65,11 @@ cmake-$(CMAKE_VERSION).tar.gz:<br>
><br>
>  cmake: cmake-$(CMAKE_VERSION).tar.gz<br>
>         $(UNPACK)<br>
> +       $(APPLY) cmake-3.2.3.patch<br>
>         $(MOVE)<br>
><br>
>  .cmake: cmake<br>
> -       (cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE) install)<br>
> +       (cd $<; ./configure --prefix=$(PREFIX) --parallel=`nproc` && $(MAKE) && $(MAKE) install)<br>
>         touch $@<br>
><br>
>  </p>
<p dir="ltr">Please lets not use nproc. Or at least can we probe for it first?</p>
<p dir="ltr">-- Sean McG.</p>