Is there a way to an updated variable from parent scope?
For example,
I am in a sub-directory
set(FOO 2 PARENT_SCOPE)
...
retrieve FOO from PARENT_SCOPE
I know sub-directory would get a copy of FOO, if it existed, when it
was entered.
I played with set/get_property() for this, but which work
On 6/2/10 9:24 PM, Michael Hertling wrote:
>>
>> On 06/02/2010 10:24 PM, Doug Reiland wrote:
>>
>>>
>>> Is there anyway to do in a generic fashion?
>>> For example, I don't know what all the variables are.
>>> I can be certain that they are valid
Hertling wrote:
> On 06/02/2010 08:37 PM, Doug Reiland wrote:
>> Sorry for another newbie question.
>>
>> Say, to setup a variable as follow so ${build-dir} doesn't get expanded
>> set(foo \${build-dir}/foo.c)
>>
>> How would a expand foo so ${build-dir}
Sorry for another newbie question.
Say, to setup a variable as follow so ${build-dir} doesn't get expanded
set(foo \${build-dir}/foo.c)
How would a expand foo so ${build-dir} gets expanded?
The following don't seem to do it.
message(${foo})
message(${${foo}})
___
, 2010 at 12:44 PM, Michael Wild wrote:
>
> On 2. Jun, 2010, at 17:51 , Doug Reiland wrote:
>
>> Yeah, I know I can do that.
>> I want to add foo3.c after the add_library() has been done.
>> The example is simple, but it describes what I hope to do.
>>
>>
>>
perfect, thankyou!
On Wed, Jun 2, 2010 at 12:34 PM, Clinton Stimpson wrote:
> On Wednesday, June 02, 2010 10:24:44 am Doug Reiland wrote:
>> Is it possible to implement a list of lists. The following example
>> shows cmake ending up with a list with 6 elements instead of
&
Is it possible to implement a list of lists. The following example
shows cmake ending up with a list with 6 elements instead of
a list with 2 elements with each element being a list with 3 elements
set(fooa 1 2 3)
set(foob a b c)
message(${fooa})
message("${fooa}")
message("${foob}")
list(APPEND f
Is there anything to "add to" a target after it is declared?
For example,
add_library(foo STATIC foo1.c foo2.c)
add_some_more(foo foo3.c)
or
add_some_more(foo foo3.o)
If not, feasibility on how it could be implemented?
Thanks,
Doug
___
Powered
I am porting a library over to cmake.
This library is built both shared and static AND has several composite
objects that get linked in.
For example,
subdir-a had makefile that compiled and linked a1.c a2.c into ../a.o
top directory linked in a.o into it's libs (shared and static)
I have conver
argets are supported?
On 05/28/2010 12:14 AM, Doug Reiland wrote:
okay, I have ordered the book. But, in the meantime.
I am continuing to port a large library from in-house build to cmake
for evaluation.
What builtin targets are supported?
On *nix, run CMake on a directory with an empty CMak
okay, I have ordered the book. But, in the meantime.
I am continuing to port a large library from in-house build to cmake
for evaluation.
What builtin targets are supported?
I got lex, gperf, and other kinds of stuff.
A (pseudo code) didn't work:
add_library(foo *.c *.gpref)
thanks!
___
tephen CIV NSWCDD, W15
wrote:
>> From: cmake-boun...@cmake.org on behalf of Doug Reiland
>> Sent: Thu 5/27/2010 11:14 AM
>> To: cmake@cmake.org
>> Subject: [CMake] cmake - library help
>>
>> First, I am new to cmake and exploring converting our home grown build
&
First, I am new to cmake and exploring converting our home grown build system.
How would I code this up in cmake
I have composite objects that need to be added to a share library
add_library(foo a.c b.c c.c)
I also need x.o in the library AND x.o linked from:
subdir-a/aa.c subdir-a/bb.c
Thank
13 matches
Mail list logo