2010/11/18 David Cole :
> On Thu, Nov 18, 2010 at 1:08 PM, Denis Scherbakov
> wrote:
>> Here is a sample CMakeLists.txt to illustrate that two custom targets cannot
>> depend on each other:
>>
>> PROJECT(BUG C)
>>
>> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
>>
>> ADD_CUSTOM_COMMAND(
>> OUTPUT "${CMA
On 2010-11-18 07:18-0800 Denis Scherbakov wrote:
David,
Thank you for spending your time to resolve my problem.
Unfortunately you suggestion did not help.
Introduction of new custom targets in my case leads to the fact that
I have one custom target that depends on another custom target. I get
** No rule to make target `targetFileOne', needed by
> `CMakeFiles/targetFileOneS'. Stop.
> gmake[1]: *** [CMakeFiles/targetFileOneS.dir/all] Error 2
> gmake: *** [all] Error 2
>
> So I am back to my problem that I cannot compile my project in parallel.
> The question is
oblem that I cannot compile my project in parallel.
The question is: How to implement mutexes in CMake scripts?
Denis
--- On Thu, 11/18/10, David Cole wrote:
> From: David Cole
> Subject: Re: [CMake] Problems with parallel builds
> To: "Denis Scherbakov"
> Cc: cmake@cmak
uot;gmake -j4 targetA targetB" also fails. You need to "gmake -j4 targetA"
and then "gamake -j4 targetB" to get correct results.
Denis
--- On Thu, 11/18/10, David Cole wrote:
> From: David Cole
> Subject: Re: [CMake] Problems with parallel builds
> To: "De
Try:
ADD_CUSTOM_TARGET(MyHeaders ALL DEPENDS MyFile.hh)
Without the "ALL" your target is not included in the set of targets
built by a "make" or a "make all" -- without your target included in
"make" there is nothing for the subsequent targets to depend on.
Perhaps we should add a warning to add_d
Hi, David,
I did as you suggested:
ADD_CUSTOM_COMMAND(OUTPUT MyFile.hh ...)
ADD_CUTSOM_TARGET(MyHeaders DEPENDS MyFile.hh)
ADD_LIBRARY(MYLIB ${MYLIB_SRCS})
ADD_DEPENDENCIES(MYLIB MyHeaders)
ADD_LIBRARY(MYLIBpic ${MYLIB_SRCS})
ADD_DEPENDENCIES(MYLIBpic MyHeaders)
Didn't work. Target "MyHeader
Hi, Marcel,
What I mean is that I have a huge source tree and many CMake files and there is
a source file inside this tree that needs to be built two times, because there
will be an executable using it (non-PIC) and a shared library (PIC). So I have
to create two targets (say MYLIB and MYLIBpic
;
> Denis
>
> --- On Thu, 11/18/10, Eric Noulard wrote:
>
>> From: Eric Noulard
>> Subject: Re: [CMake] Problems with parallel builds
>> To: "Denis Scherbakov"
>> Cc: cmake@cmake.org
>> Date: Thursday, November 18, 2010, 5:13 AM
>>
at the same time and
there is no way to tell one of them that the file is being built by someone
else already.
Denis
--- On Thu, 11/18/10, Eric Noulard wrote:
> From: Eric Noulard
> Subject: Re: [CMake] Problems with parallel builds
> To: "Denis Scherbakov"
> Cc: cmake
2010/11/18 Denis Scherbakov :
> Dear All,
>
> I am using CMake 2.8.1 on Linux x86. I have a project that needs to be built
> two times. One with -fPIC, the other - without. The project depends on header
> files that need to be generated by an external script.
>
> When I build this project with se
>>> On 18-11-2010 at 13:06, in message
<306960.51089...@web65407.mail.ac4.yahoo.com>, Denis Scherbakov
wrote:
> Dear All,
>
> I am using CMake 2.8.1 on Linux x86. I have a project that needs to
be built
> two times. One with -fPIC, the other - without. The project depends
on header
> files tha
Dear All,
I am using CMake 2.8.1 on Linux x86. I have a project that needs to be built
two times. One with -fPIC, the other - without. The project depends on header
files that need to be generated by an external script.
When I build this project with several parallel jobs (gmake -j5, for exampl
13 matches
Mail list logo