[CMake] Parallel jobs failed for cmake
Igor Sobinov
sluge at mail.ru
Mon Dec 14 01:34:47 EST 2015
Hello Bill,
Thanks, that's clear.
So, If I write in makefile
build_release: $(RELEASE_DIR)
@cd $(RELEASE_DIR); $(MAKE) release
I got an error
Also if I write build_release: $(RELEASE_DIR)
$(MAKE) release -C $(RELEASE_DIR)
I got an error too
But this is successfull command:
# cd $ RELEASE_DIR; make release -j10
Why make doesn't support jobs for subdirs?
>Пятница, 11 декабря 2015, 14:14 -05:00 от Bill Hoffman <bill.hoffman at kitware.com>:
>
>On 12/11/2015 7:24 AM, Igor Sobinov wrote:
>> Hello Bill,
>>
>> yes, make release is a custom command but that's not important.
>> I do the following:
>> # cd /home/igor/build_root/release_target
>> # make release -j5
>Yes, it is important, it is the reason it is not working. The custom
>command needs to use $(MAKE) and not make to call make or you will get
>this error. Child make calls need environment variables to get parallel
>builds to work. The MAKE env var is used to pass them around.
>
>-Bill
>
Bye, Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151214/bedf79fd/attachment.html>
More information about the CMake
mailing list