On 05/21/2015 09:31 AM, Taylor Braun-Jones wrote:
> gmake[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
> rule.

I don't think that is caused by the MAKEFLAGS removal I linked.
The code I linked does not run during 'cmake --build'.  It only
runs while configuring a project to protect try_compile.

The problem is that make does not pass MAKEFLAGS when invoking a tool
it does not think is 'make'.  For example:

-----------------------------------------------------------------------------
$ cat env.make
all:
        @env make -f env.make other

other:
        @echo MAKEFLAGS='$(MAKEFLAGS)'

$ make -j2 -f env.make other
MAKEFLAGS= -j --jobserver-fds=3,4

$ make -j2 -f env.make all
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.
MAKEFLAGS=w
-----------------------------------------------------------------------------

You could try using "+env" as your COMMAND instead, though I wouldn't
consider this an officially supported approach.

-Brad

-- 

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-developers

Reply via email to