[CMake] CMake can't find the JDK?

2012-06-29 Thread Eli Gottlieb
When I run CMake on my project (java bindings for llvm) after upgrading to Ubuntu 12.04, it returns the following error: eli@eli-netbook:~/Programs/decac/src/org/jllvm/bindings$ cmake . CMake Error at /usr/share/cmake-2.8/Modules/FindJava.cmake:99 (MESSAGE): Error executing java -version Call S

Re: [CMake] Fwd: Re: how to do this: svn info?

2012-06-29 Thread Totte Karlsson
That tip worked fine! I ended up doing STRING(REPLACE "\n" "\\n\\\n" svn_lastlog_with_slashes ${rr_LAST_CHANGED_LOG}) So when reading the char constant newlines are embedded. tk On 6/28/2012 11:08 PM, m.hergarden wrote: Will a string replace combo help in your case? We use it to replac

[CMake] Cache dumping utility to create a -C initial cache?

2012-06-29 Thread Ateljevich, Eli
Hi everyone, One difficulty I tend to have backing up my cache is that it is long and not in the same format as , a point I raised in a previous post. When blowing away the cache and reconfiguring it is not convenient to back up what is lost and do a round-trip back to cmake. One thing that wou

Re: [CMake] Using the -C option to cmake

2012-06-29 Thread Ateljevich, Eli
The mechanics of this are not due to -C but scope issues. I would not advocate overstepping the "defined" behavior of -C, but learning the reasons why your function did not work was informative for me as a new user. The -C option and act the way they do because of the way SET works and how ear

Re: [CMake] Using the -C option to cmake

2012-06-29 Thread Andreas Pakulat
Hi, On Fri, Jun 29, 2012 at 2:44 PM, Christian Arnault wrote: > Hi, > > I wanted to factor out some initial stuff of my CMakeLists.txt that I > systematically include. > > typically I include the following lines at the beginning of all my > CMakeLists.txt: > > cmake_minimum_required(VERSION 2.8)

Re: [CMake] Using the -C option to cmake

2012-06-29 Thread David Cole
The documentation for the CMake -C command line option says: "When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pa

[CMake] Using the -C option to cmake

2012-06-29 Thread Christian Arnault
Hi, I wanted to factor out some initial stuff of my CMakeLists.txt that I systematically include. typically I include the following lines at the beginning of all my CMakeLists.txt: cmake_minimum_required(VERSION 2.8) function (AA) message ("calling AA") endfunction() AA() Then I thought

Re: [CMake] Can we control component package name in 2.8.8?

2012-06-29 Thread jupiter
On Thu, Jun 28, 2012 at 9:05 PM, Eric Noulard wrote: > 2012/6/28 hce : > > > > m.hergarden wrote > >> > >> The unspecified may come from an Install statement that does not have a > >> component specified. > >> > >> Micha > >> > > > > I actually double checked, there are only two install statements