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
On 18-11-2010 at 13:06, in message
306960.51089...@web65407.mail.ac4.yahoo.com, Denis Scherbakov
denis_scherba...@yahoo.com 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
2010/11/18 Denis Scherbakov denis_scherba...@yahoo.com:
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
to tell one of them that the file is being built by someone
else already.
Denis
--- On Thu, 11/18/10, Eric Noulard eric.noul...@gmail.com wrote:
From: Eric Noulard eric.noul...@gmail.com
Subject: Re: [CMake] Problems with parallel builds
To: Denis Scherbakov denis_scherba...@yahoo.com
Cc
Subject: Re: [CMake] Problems with parallel builds
To: Denis Scherbakov denis_scherba...@yahoo.com
Cc: cmake@cmake.org
Date: Thursday, November 18, 2010, 5:13 AM
2010/11/18 Denis Scherbakov denis_scherba...@yahoo.com:
Dear All,
I am using CMake 2.8.1 on Linux x86. I have a project
that needs
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
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
fails. You need to gmake -j4 targetA
and then gamake -j4 targetB to get correct results.
Denis
--- On Thu, 11/18/10, David Cole david.c...@kitware.com wrote:
From: David Cole david.c...@kitware.com
Subject: Re: [CMake] Problems with parallel builds
To: Denis Scherbakov denis_scherba...@yahoo.com
david.c...@kitware.com wrote:
From: David Cole david.c...@kitware.com
Subject: Re: [CMake] Problems with parallel builds
To: Denis Scherbakov denis_scherba...@yahoo.com
Cc: cmake@cmake.org
Date: Thursday, November 18, 2010, 6:43 AM
Try:
ADD_CUSTOM_TARGET(MyHeaders ALL DEPENDS MyFile.hh
.
The question is: How to implement mutexes in CMake scripts?
Denis
--- On Thu, 11/18/10, David Cole david.c...@kitware.com wrote:
From: David Cole david.c...@kitware.com
Subject: Re: [CMake] Problems with parallel builds
To: Denis Scherbakov denis_scherba...@yahoo.com
Cc: cmake@cmake.org
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
2010/11/18 David Cole david.c...@kitware.com:
On Thu, Nov 18, 2010 at 1:08 PM, Denis Scherbakov
denis_scherba...@yahoo.com 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)
12 matches
Mail list logo