I've got an existing project with a CMake-based build system. The project:
- Has both C and C++ files
- Links some ".o" files into convenience .a files.
- Links some ".o" and ".a" files into several different executables.
- Can be built successfully with gcc or clang.
When using clan
Hi guys,
>From the cmake 2.6 documentation, it sounds to me like
INCLUDE_DIRECTORIES will add another directory to the list of those
searched for header files. In contrast, LINK_DIRECTORIES sounds like
it overwrites, rather than appends to, the previous list of
directories that are searched throu
I have a problem: In my multi-level source tree, I have some
subprojects. All subprojects are built by CMake.
My problem is that sometimes a subproject (over which I have little
control) sets a variable for its own use, such as LIBRARY_OUTPUT_PATH.
The problem is that the value gets cached, and
Hi guys,
Someone pointed out that when we cmake one of our projects, a file
CMakeOutput.log and a directory CMakeTmp/ get created. It looks like
they're being used to see if the function "strcasecmp()" works on this
platform.
But we have another project that this doesn't happen at all for, even
On Jan 2, 2008 8:54 PM, Christian Convey <[EMAIL PROTECTED]> wrote:
> On Jan 2, 2008 10:23 AM, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> [snip]
> > Ok. So you have one build tree, and everything's built in this tree, both
> > for
> > the PPC and fo
On Jan 2, 2008 9:15 AM, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> On Monday 31 December 2007, Brandon Van Every wrote:
> > On Dec 30, 2007 3:19 PM, Christian Convey <[EMAIL PROTECTED]>
> wrote:
> > > A Cell processor has one PowerPC core, plus 8 "SPE&q
On Dec 21, 2007 3:29 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote:
> Mike Jackson wrote:
> > Out of curiosity more than anything else.. what _doesn't_ work at the
> > moment? Does the linux on PS3 have all the common build tools like
> > compilers, linkers, make and such?
> >
> > Can you actually get
On Dec 21, 2007 11:41 AM, Mike Jackson <[EMAIL PROTECTED]> wrote:
> Out of curiosity more than anything else.. what _doesn't_ work at the
> moment? Does the linux on PS3 have all the common build tools like
> compilers, linkers, make and such?
>
> Can you actually get cmake to build on the PS3 usin
Does anyone know if there are plans to get CMake capable of building
programs for the Cell BE processor in a Linux environment?
I've started programming a Playstation 3 running Linux, and I miss CMake.
___
CMake mailing list
CMake@cmake.org
http://www.cm
OK, I've figured it out. Consider the following code. I use it to
decide, at cmake time, what subdirectories will be built in the
project (trust me - I have a reason to do it this way.)
Anyway, if a subdirectory (or descendant of a subdirectory) has a file
named "ExtraCMakeIncludeDirs.txt", then
On 10/24/07, Bill Hoffman <[EMAIL PROTECTED]> wrote:
> Christian Convey wrote:
...
> >
>
> Can you create a test case that shows this problem?
>
I'm trying to, but it's very slow going because of the complexity of
the project. But I have noticed one thi
Does anyone know about this?
I've got a C++ project on Linux. I've been using CMake with it for a
while now.
In the past I had one directory per library or application that's in
my project. The other day I modified my project so that some lib/app
code directories are at directory level n, and s
On 8/13/07, Hendrik Sattler <[EMAIL PROTECTED]> wrote:
> Am Montag 13 August 2007 21:26 schrieb Christian Convey:
> > Is the following something that should be added to CMake?
> >
> > My project has about 70 targets: about 20 libraries and 50 apps.
> >
> &g
Is the following something that should be added to CMake?
My project has about 70 targets: about 20 libraries and 50 apps.
I'd like to make the building of any particular target be optional, as
expressed by the OPTION(...) command. However, if I try to build an
app that depends on a library targ
On 8/10/07, Kyle Heath <[EMAIL PROTECTED]> wrote:
> I would like to use cmake to build a set of single target projects
> (each project generates either one library or one executable). I
> understand how to handle dependencies on external packages with the
> Find.cmake scripts, but I don't know how
It looks to me like CONFIGURE_FILE is a no-op when the target file
already exists *and* has the exact same content that it would have if
CONFIGURE_FILE ran.
I'm basing me belief by looking running some experiments and looking
at timestamps.
But this isn't mentioned in the online docs for CONFIGUR
I've got a top-level directory with *70* subdirectories. Each
subdirectory defines a sub-PROJECT (I'm not sure this was necessary),
and typically one build target (either a library or program).
I want to define two INSTALL components, which collectively will
install all 70 targets. At my top-lev
The online help says that we should use ADD_SUBDIRECTORY rather than
SUBDIRS, but that SUBDIRS still works.
Does anyone know why we're supposed to prefer ADD_SUBDIRECTORY?
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
On 8/8/07, Philip Lowman <[EMAIL PROTECTED]> wrote:
> Eric Noulard wrote:
...
>
> --enable-foo is much more readable than -DENABLE_FOO or -DUSE_FOO.
> Having implemented USE_FOO arguments for every single one of our
> optional dependencies and looked at them on a CMake command line I can
> attest t
On 8/8/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Can anybody here explain how the COMPONENT option of
> the INSTALL CMake MACRO
> works?
I think of it as a way to give a name to different subsets of your
installable files, so that you can install the subset of choice using
"make i
When my project contains two libraries, where one depends on the other...
Are there any reasons for, or against, calling th
TARGET_LINK_LIBRARIES command to express that dependency?
Does the answer change depending on whether zero, one, or both of them
are static vs. dynamic libraries?
Thanks,
C
I've got two subprojects: A library FOO, and a program BAR.
If I have this:
ADD_EXECUTABLE(BAR main.cpp)
TARGET_LINK_LIBRARIES(BAR FOO)
Then does CMake somehow realize that it needs to build its FOO library
before trying to link the BAR program?
Or do I need to explicitly tell it to do this, us
On 8/6/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
> 2007/8/5, Christian Convey <[EMAIL PROTECTED]>:
> [...]
> If I summarize I think a VAR may be tested with
>
> IF (DEFINED VAR) --> if true VAR is defined with a value
> IF (CACHED VAR) --> if true VAR v
In this project I'm working on, the user is supposed to be able to
specify where the project's programs and libraries are placed when
they're built. So the top-level lists
SET( LIBRARY_OUTPUT_PATH ${MOOSBIN} CACHE PATH
"Output directory for the MOOS libraries" )
But I have a problem: If so
On 8/3/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
> > So I've been trying to accomplish
> > packaging with as few changes to his own CMakeLists.txt files as
> > possible.
>
> Yes I understand, nonetheless CPack IS a cross platform tools
> just as CMake is.
>
> I wrote UseRPMTools such as it won't
On 8/3/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> Currently we are in the process of migrating from phpbugtracker to mantis, so
> better wait a few days until everything is working again as it should.
>
OK, will do.
>
> P.S. which feature ?
Request #1:
My project produces multiple Debia
On 8/3/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
> > But when I do this, I don't find any files named
> > CPackSourceConfig.cmake in my build directory ('x').
>
> Did you
>
> INCLUDE(CPack) in your root CMakeLists.txt ?
Nope :) That fixed it.
The project I'm helping to package is lead by a guy
Is there somewhere I can register a feature request for CMake?
I looked at the bug tracker, but got the sense that it was really
meant for bugs, not feature requests.
- Christian
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listin
On 8/2/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
> If you have trouble with the macro do not hesitate to ask for
> explanation and/or send patched version either on the list or the wiki
Thanks. Could you explain something to me?
It looks to me like you're supposed to be in the top-level direct
I've coded my own solution for now to get Debians built, but was
hoping to move to CPack 2.6 once it's released.
But now I'm feeling some pressure to build RPM package as well.
Does anyone know: does CPack 2.6 not support RPMs for some major
technical reason, or has just no one had the time yet t
On 8/1/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> I'm using FindFLTK, and I seem to need to specify, on my own:
> FLTK_INCLUDE_DIR=/usr/include/FL
>
In fact, I can even get it to work when I just specify:
FLTK_INCLUDE_DIR=/usr/include
which sounds even more ridi
I'm using FindFLTK, and I seem to need to specify, on my own:
FLTK_INCLUDE_DIR=/usr/include/FL
If I don't set it explicitly, then the variable FLTK_FOUND ends up
having a value of 0 rather than 1.
Does anyone know why this is? When I look through the shipped version
of FindFLTK.cmake, line 1
Some good ideas and some misconceptions have been thrown around as
I've tried to use CMake to produce Debian packages. Here's a
consolidation of what I think are the major lessons, in case anyone
else has to do this too.
The notes below do *not* completely describe how to build Debian
packages wi
On 7/30/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> On Monday 30 July 2007 16:54, Christian Convey wrote:
> > Actually, I just realized that "make install" is failing because I
> > don't have permissions for installing to the target directory.
&g
install" (which will fail), to cause the "cmake -P
cmake_install.cmake" command to work? Is there some target I can
make?
Thanks,
Christian
On 7/30/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> On 7/30/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> >
&g
On 7/30/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
>
> > When I ran "make install" repeatedly (any number of times), it always
> > fails.
>
> I can't reproduce this.
> Which version of cmake are you using ?
[EMAIL PROTECTED]:~$ cmake --version
cmake version 2.4-patch 6
> Which steps do I h
> On Monday 30 July 2007 15:23, you wrote:
> > On 7/30/07, Christian Convey wrote:
> > > > Can you try to create a minimal testcase so we can reproduce the
> > > > problem here ?
> > > >
> > > > Alex
> >
> > I've got
On 7/30/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> > Can you try to create a minimal testcase so we can reproduce the problem
> > here ?
> >
> > Alex
I've got a pretty minimal test case. The problem installing an
executable "Foo" seems to only
Sorry - the command I ran to get the output is this:
[EMAIL PROTECTED]:~/src/x$ DESTDIR=/tmp/foozle/ cmake
-DCMAKE_INSTALL_COMPONENT=Moos_Core -P cmake_install.cmake
> But then when I run the following command, I get this output:
>
> -- Install configuration: ""
> -- Install configuration: ""
>
I've got a multi-level project. I'm not explicitly setting the
EXECUTABLE_OUTPUT_PATH variable, so executables end up in the same
directory as whatever CMakeLists.txt file dfines the executable.
So I have an executable named "MOOSDB", which ends up in the directory
Core/MOOSDB/
In Core/MOOSDB/CM
On 7/29/07, Philip D. Lowman <[EMAIL PROTECTED]> wrote:
> Christian Convey wrote:
> > Thanks Philip.
> >
> > I noticed that Medhi's DpkgDeb doesn't invoke 'fakeroot', which I
> > thought was necessary for producing good .deb files. Do
On 7/28/07, David Cole <[EMAIL PROTECTED]> wrote:
> Try this:
> MACRO(BAR)
>SET(bar_ARGV0 "${ARGV0}")
>MESSAGE("bar_ARGV0 = ${bar_ARGV0}")
>SET(ARGV0_NAME bar_ARGV0)
>MESSAGE("bar_ARGV0 = ${${bar_ARGV0_NAME}}")
> ENDMACRO(BAR)
>
> I'm not *the* expert to explain this behavior, but I
Could someone please explain why this code works:
SET(FOO 10)
SET(FOONAME FOO)
MESSAGE("FOO = ${${FOONAME}}")
but this code does not?
MACRO(BAR)
MESSAGE("ARGV0 = ${ARGV0}")
SET(ARGV0_NAME ARGV0)
MESSAGE("ARGV0 = ${${ARGV0_NAME}}")
ENDMACRO(BAR)
BAR(123)
In the first block of code, "FO
On 7/27/07, Brandon Van Every <[EMAIL PROTECTED]> wrote:
> On 7/27/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> > I'm working on my first CMake package, an came across a few things
> > that concerned me:
> >
> > - My package uses variables from the
I'm using INSTALL(...)'s COMPONENT parameter to specify various
subsets of files that should be installed in different circumstances.
Suppose I have an install component named Foo.
Is there an easy way I can express a dependency, within CMake, on all
of the files that would be installed for compo
I'm working on my first CMake package, an came across a few things
that concerned me:
- My package uses variables from the same namespace that all other
CMake code uses. To avoid unintended variable/macro name conflicts,
I'm forced to use long variable names.
- There's no notion (that I can see)
On 7/27/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> On Thursday 26 July 2007 11:58, Christian Convey wrote:
> > Hi Alex,
> ...
> > 5. Do my dpkg-deb actions to package the contents of Bar.
>
> Since today cmake (cpack) cvs should be able to generate deb
On 7/26/07, Brandon Van Every <[EMAIL PROTECTED]> wrote:
On 7/26/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> On 7/26/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
> > On Thursday 26 July 2007 11:58, Christian Convey wrote:
> > > Hi Alex,
> >
On 7/26/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
On Thursday 26 July 2007 11:58, Christian Convey wrote:
> Hi Alex,
>
> Wouldn't the command:
> cmake -DCMAKE_INSTALL_COMPONENT=Headers -P cmake_install.cmake
>
> overwrite the very makefiles that are execut
ndorf <[EMAIL PROTECTED]> wrote:
On Thursday 26 July 2007 11:25, Christian Convey wrote:
> I'd like "make install" to install different (named) subsets of files,
> depending on my needs. For example, "make output=header-files
> install" or "make output=
I'd like "make install" to install different (named) subsets of files,
depending on my needs. For example, "make output=header-files
install" or "make output=libraries install".
Is what I'm trying to accomplish even possible? I can't figure out
how to make this controllable at make-time. I can
y that the "CMakePackages" directory is one
of the directories searched when I issue INCLUDE(...) commands?
Thanks,
Christian
On 7/24/07, Philip Lowman <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Convey wrote:
> I need my CMake-based proje
P SIGNED MESSAGE-----
Hash: SHA1
Christian Convey wrote:
> I need my CMake-based project to produce Debian packages in the
> near-term, and RPMs probably a few months from now.
Try Medhi's reworked RpmBuild and DpkgDeb macros.
http://www.cmake.org/Wiki/CMakeUserUseDebian#Derived_wo
Hi guys,
I need my CMake-based project to produce Debian packages in the
near-term, and RPMs probably a few months from now.
I've already worked out how to create .deb files (using a traditional
Makefile and the dpkg-deb and lintian programs).
But then I look at CPack, which appears to be inten
e found on other
linux distro.
So I guess his solution might be more robust in the future ...
-Mathieu
On 7/6/07, Christian Convey <[EMAIL PROTECTED]> wrote:
> Thanks. Why do you prefer Medhi's approach?
>
> On 7/6/07, Mathieu Malaterre <[EMAIL PROTECTED] > wrote:
> &
Thanks. Why do you prefer Medhi's approach?
On 7/6/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote:
http://www.cmake.org/Wiki/CMakeUserUseDebian
IMHO you should first try the solution from Medhi at:
http://www.cmake.org/Wiki/CMakeUserUseDebian#Derived_work
-Mathieu
___
Is there one preferred technique for using CMake to produce Debian packages?
Thanks,
Christian
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
2007-02-25 13:34-0500 Christian Convey wrote:
> (Couldn't spot this in the docs - sorry if it's obvious...)
>
> I've got a project that involves a library, and several demo apps that
> use that library.
>
> - Is there a strong reason to avoid using a single CMake fil
(Couldn't spot this in the docs - sorry if it's obvious...)
I've got a project that involves a library, and several demo apps that
use that library.
- Is there a strong reason to avoid using a single CMake file to
express the logic for building the library and the apps?
- How do I express the f
59 matches
Mail list logo