2009/7/2 Marcel Loose lo...@astron.nl:
Hi Eric,
The variable your are testing may contain un-evaluated var
or some special regex character( *, ?, ...)
See attached example, you may test it with
$ cmake -P matches.cmake
MATCHES -- MYVAR = A good var
Look that one = double-dollar = blah /
Eric Noulard wrote:
If so, I still don't quite get the usage pattern in, e.g.,
CheckIncludeFile.cmake. What are they trying to check?
Better ask the author of this file :-)
This was a hack left from before the 'DEFINED' option was
available from the if() command. The code
if(VAR MATCHES
I'm very happy to announce, that I have found a solution.
Problem was:
Either CMake stopped, because a dependend source file was missing (not
generated yet).
Or 'make' ALWAYS tried to create the generated source files multiple times,
because I had to use ADD_CUSTOM_TARGET, because the
Hi John,
the same problem has bitten me as well, now in a case, where I cannot
simply uninstall one of both compiler versions.
I analyzed the situation a bit, and I am not sure, if either CMake or
Visual Studio is the culprit here.
During try_compile for checking the Fortran compiler, CMake
On Thursday 02 July 2009, Marcel Loose wrote:
Hi David,
That indeed seems to do the trick. The diagnostics are somewhat vague,
though, if not to say incorrect.
-- Looking for include files var
-- Looking for include files var - found
-- var = 1
I think the line
MESSAGE(STATUS
Wow,
So this really is ancient code!
Thanks for the explanation.
Best regards,
Marcel Loose
On Fri, 2009-07-03 at 07:59 -0400, Brad King wrote:
Eric Noulard wrote:
If so, I still don't quite get the usage pattern in, e.g.,
CheckIncludeFile.cmake. What are they trying to check?
Better
I can't figure out how I can unzip a set of files with CMake.
I have a bunch of files in a zip archive, which need to be expanded
during the build process and I would like to know how this can be done
in a portable way with CMake?
Thanks.
Peter
cmake -E tar
can untar .tar files and .tar.gz files... But you have to use an external
tool for .zip files.
We are considering adding libarchive support to be able to handle more zip
formats, but it has not been tackled yet. (See
http://code.google.com/p/libarchive/ for more info.)
HTH,
David
Ancient is in the eye of the beholder. The CMake folks appear to take
backward compatibility seriously. You will appreciate this in ten
years when you revive a project that uses CMake.
Bill
On Fri, Jul 3, 2009 at 12:54 PM, Marcel Looselo...@astron.nl wrote:
Wow,
So this really is ancient
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey rcdai...@gmail.com wrote:
Hi,
If I have the following CMakeLists.txt:
cmake_minimum_required( VERSION 2.6.4 )
project( project1 )
add_executable( project1 source1.cpp )
project( project2 )
add_executable( project2 source2.cpp )
project(
Hi everyone,
I have a feeling this should be obvious, but i cant figure it out.
Probably im using the wrong keywords to search the mailing list.
What i want to do is add a test (using ADD_TEST, for ctest) that
verifies that my program outputs what it was supposed to output.
CTest, however,
On Fri, Jul 3, 2009 at 2:54 PM, James Bigler jamesbig...@gmail.com wrote:
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey rcdai...@gmail.com wrote:
Hi,
If I have the following CMakeLists.txt:
cmake_minimum_required( VERSION 2.6.4 )
project( project1 )
add_executable( project1 source1.cpp )
On Fri, Jul 3, 2009 at 3:31 PM, Robert Dailey rcdai...@gmail.com wrote:
On Fri, Jul 3, 2009 at 2:54 PM, James Bigler jamesbig...@gmail.comwrote:
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey rcdai...@gmail.com wrote:
Hi,
If I have the following CMakeLists.txt:
cmake_minimum_required(
On Fri, Jul 3, 2009 at 2:33 PM, Robert Dailey rcdai...@gmail.com wrote:
On Fri, Jul 3, 2009 at 3:31 PM, Robert Dailey rcdai...@gmail.com wrote:
On Fri, Jul 3, 2009 at 2:54 PM, James Bigler jamesbig...@gmail.comwrote:
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey rcdai...@gmail.comwrote:
On Fri, Jul 3, 2009 at 3:44 PM, James Bigler jamesbig...@gmail.com wrote:
I was under the impression that project() created some kind of scope that
allows you to reset certain variables. Subdirectories allow you to create a
new scope, but you inherit all the values from the parent. I
On Fri, Jul 3, 2009 at 4:33 PM, Robert Dailey wrote:
On Fri, Jul 3, 2009 at 3:31 PM, Robert Dailey wrote:
On Fri, Jul 3, 2009 at 2:54 PM, James Bigler wrote:
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey wrote:
[...]
Interesting, this seems to work:
project( foo )
add_library( foo1 STATIC
On Fri, Jul 3, 2009 at 5:02 PM, Miguel A. Figueroa-Villanueva
migu...@ieee.org wrote:
On Fri, Jul 3, 2009 at 4:33 PM, Robert Dailey wrote:
On Fri, Jul 3, 2009 at 3:31 PM, Robert Dailey wrote:
On Fri, Jul 3, 2009 at 2:54 PM, James Bigler wrote:
On Wed, Jul 1, 2009 at 4:34 PM, Robert Dailey
On 03.07.09 17:09:08, Robert Dailey wrote:
Again, this is all just a misunderstanding on my part. It was a bit
misleading. What purpose does project() serve on other generators, like
XCode or Makefile?
As far as I know for Unix Makefile's it serves no other purpose than
enabling/disabling
So I tried to set EXECUTABLE_OUTPUT_PATH to the same path as
PROJECT_BINARY_DIR like so:
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR} CACHE
PATH Single output directory for building all executables.
FORCE)
This works on Windows (nmake makefiles) but when using cmake
on Gentoo (standard unix
I have a test that produces output files that I would like to compare
against a blessed copy. Is there a way to do this in CMake/CTest?
This is probably a very simple thing, but I have not figured out how
to do it.
I have an
add_test( ... )
that creates the test, but I am not
20 matches
Mail list logo