Hi Community,
In the large project we a having periodic taks which build a couple of
projects and store the result of the build in one specific place.
Once it's build the rest of the team can use this artifacts becouse
those are exported by using of export(TARGETS ...)
Since the others refer
Hi Community,
I could not found any other possibilites to set some global variable
than using a cache variable. Even if this is not nice sometimes you
need to have a global variable.
So I would like to ask about advice in this area:
1) Is this the real use case for cache, so to use it as a
Use the cache only if the values need to be persistent. Otherwise I
recommend using a GLOBAL property. See set_property() and get_property().
Michael
Thank you Michael. Looks good. So let me summarize. The workflow
should looks like follow:
1. Top Level CMakeLists.txt:
add_subdirectory( foo
Hi All,
I guess it's not commonly used feature. Does anyone who knows a code
of cmake a bit can provide information if that's possible at all?
Thanks, T Majchrowski.
2011/8/11 t m cm...@majchrowski.co.uk:
Hi All,
Is it possible to register hook function that will be called at the
end
I would like to touch flag file in the CMAKE_BINARY_DIR once the
target all is executed with sucess.
Since currently I'm not able to specify the dependency to this
build-in target I do not have any hook to recognize if all sucess and
1. Does anyone knows any hint that can help me with this
Hi All,
I would like to touch flag file in the CMAKE_BINARY_DIR once the
target all is executed with sucess.
Since currently I'm not able to specify the dependency to this
build-in target I do not have any hook to recognize if all sucess and
to touch file.
1. Does anyone knows any hint
Hi All,
Is it possible to register hook function that will be called at the
end of processinf of CMakeLists.txt:
Example CMakeLists.txt
0:cmake_minimum_required( VERSION 2.6 )
1:project( foo.project)
2:
3: add_subdirectory( example )
4:
...
N: -- last line of CMakeLists.txt this will trigger to
Hi All,
I would like to touch flag file in the CMAKE_BINARY_DIR once the
target all is executed with sucess.
Since currently I'm not able to specify the dependency to this
build-in target I do not have any hook to recognize if all sucess and
to touch file.
1. Does anyone knows any hint that can
Hi James,
Thanks you for feedback. See my comments:
I dismissed the idea of using the cmake dependency scanner, because it was a
makefile only solution. I wasn't interested in maintaining multiple code
paths. It's much better for testing to have it work basically the same way
everywhere.
As far as I correctly understood patch from Peter, implementation for
makefile dependency is on place.
For me makefile dependency is fine, since I'm using only makefiles.
I just tried to understand idea of LANGUAGE inside cmake. I think that
in this particular case having new language on
Hi
I've two topics related to the support for custom lang in cmake. I
hope you can help me.
1) Does anyone knows plan about merge the following feature related to
the CUDA: http://public.kitware.com/Bug/view.php?id=11887
I'm in the process of integrating the CUDA Toolkit into our build
I think the big problem is that this will only work correctly in makefile
based systems. So, VS and Xcode will not work with this version of the Cuda
stuff.
I understand that you would like to avoid merge changes that
potentially are not adopted
to all platforms/IDEs supported by CMake itself.
I got a simple question,
What is idea behind target property LINK_FLAGS?
When I add linker flag e.g --no-undefined then cmake is not alligning
it to real linker that will be used during linking.
for example --no-undefined is a valid ld switch, but when I specify it
LINK_FLAGS it will not
Looks like a bug.
Submitted: http://public.kitware.com/Bug/view.php?id=9317
Regards, Tomek.
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic
Hello All,
Can anyone explain me why in the 3rd call of message function the
following code will return 1 instead of 2
cmake_minimum_required( VERSION 2.6 )
set (_list)
set (_list foo;bar)# 2 items
list (LENGTH _list _len)
message (STATUS _len=${_len})# 2
set (_list)
set (_list foo[];bar)#2
Hello CMake Experts,
Is there any way to define post or pre-processing actions for built-in
targets like package/package_source.
Those two are not visible in CMakeLists.txt scope, so the
add_dependencies(package_source pre_package_source)
can not be used. What I found is the solution described
16 matches
Mail list logo