Dizzy wrote:
I couldn't find one, so I ported AC_C_INLINE to CMake. Since there's no
equivalent of autoheader to make the config.h.in, I just used
ADD_DEFINITIONS.
There is such a thing, you use configure_file() to replace variables from
a "config.h.in" (tho I name them usually "config.h.cmake
Gregory C. Sharp wrote:
Hi,
Does Cmake have a macro that tests how a compiler
defines inline, such as autoconf's AC_C_INLINE?
Thanks,
Greg
Hi Greg,
I couldn't find one, so I ported AC_C_INLINE to CMake. Since there's no
equivalent of autoheader to make the config.h.in, I just used
ADD_DEFI
Goswin von Brederlow wrote:
Jack Kelly <[EMAIL PROTECTED]> writes:
What happens when CFLAGS is already set in the environment or when I
need to just extend it. I guess what I'm looking for is the Makefile
syntax
CFLAGS += something
# Try this:
SET(CMAKE_C_FLAGS "$ENV{CFLA
Goswin von Brederlow wrote:
Hi everyone.
A friend of mine keeps cursing about autotools and suggests cmake
instead. So I looked into it for a small project. Like all newbies I
run into a lot of unknowns and I'm somewhat stuck now.
My CMakeLists.txt looks like below. My questions are in the comm
Tal Blum wrote:
I get the following error: CMAKE_MAKE_PROGRAM is not set. You probably
need to set a different build tool.
Looking at http://www.vtk.org/Wiki/CMake_Generator_Specific_Information
suggests that CMake can't find cygwin's make program. Did you install it?
-- Jack
___
Atwood, Robert C wrote:
FLTK_INCLUDE_DIR C:/Program Files/FLTK/include/FL
In Cmake
Should be
C:/Program Files/FLTK/include
I think.
-- Jack
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Jesper Eskilson wrote
Well, that turned out to be a little hasty conclusion.
In case of linking with a DLL, having paths to both the dll and import
lib in LINK_DIRECTORIES avoids relinking. So far, so good.
However, I still get relinks due to a dependency on a static library. In
this case, I
Juan Sanchez wrote:
How do you disable the compiler test? Our version of gcc is passing a
bad compiler option (--as-needed) to ld and it is causing cmake to fail.
This is ok since g++ still seems to work properly.
Disable C in the project:
PROJECT(FOO CXX)
The default
PROJECT(FOO)
Will te
Mathieu Malaterre wrote:
On 9/4/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
Hi!
I've got a Visual Studio 8 solution generated by CMake where one of the
projects is always being relinked everytime I build it, even when
nothing in it has changed (i.e. if I try to build it twice, it always
reli
Pingu wrote:
All I'm asking for is a way to tell the compiler (VS8) to build the exe
in a certain folder as opposed to the build folder where the project
files are located. It really doesn't seem like it'd be that hard, but I
really don't understand CMake all that well right now.
You should b
Matthew Smith wrote:
I'd like to ask if there is a CMake variable for the version of Qt that
is present in a project? I've looked in my cache file and have never
found one, even though the version number is displayed at configure
stage when compiling the project.
Hi Matthew,
FindQt.cmake in
Atwood, Robert C wrote:
However, when I try to make the project with cmake, the tabinter.{cxx,h}
files are generated in the build directory, and the compiler cannot then
seem to locate the source directory where the 'eletable.h' file is
located.
Hi Robert,
Here's what I'd add to your CMakeLis
Hendrik Sattler wrote:
But it's also a security nightmare: you cannot just update the lib, you also
have to relink the program.
Another reason: you can't statically link against GNU LGPL code without
getting into a huge mess of sending out half-linked binaries so that
users still have the fre
Michael Wagner wrote:
Maybe somebody out there knows how to turn on warnings. (Hopefully you
are not all fearless coders that laugh in the face of warnings... ;-)
Real Programmers(tm) don't need warnings!
For mortals like myself, here's how I do it:
Go into the CMake cache via `make edit_cach
Dizzy wrote:
Thanks for the idea. I could use as a workarround configure_file() in some way
or another but then I still need one more issue solved. How to
escape "${variable}" strings in a input to configure_file() so that it
doesn't try to do variable replacement on the placeholder? (this shou
Dizzy wrote:
On install I would need cmake to portably create some empty directories that
do not exist in the source. INSTALL(DIRECTORY...) just copies an existent
structure in my case that structure does not exists. I know I could probably
search for some external mkdir command and use it but
Matthias Fechner wrote:
Hi,
I am writing my masterthesis with LaTeX and I use here cmake to do the
comilation for me.
Today I added gnuplot to my LaTeX document.
But I have now the problem that cmake first build the LaTeX document
and then the gnuplot file. How can I say cmake to first build my
[EMAIL PROTECTED] wrote:
PROJECT ( test_project )
ADD_CUSTOM_COMMAND (
OUTPUT file.txt
COMMAND cp /etc/passwd file.txt
)
ADD_CUSTOM_TARGET ( file_target DEPENDS file.txt )
INSTALL ( FILES file.txt DESTINATION /tmp )
I need to create file "file.txt" and install it. But installatio
Hi all,
I'm specifically thinking about OCaml here, but the problem generalises
to other languages where the compiler doesn't output exactly one file.
If I compile a .ml file using the native code compiler:
$ ocamlopt -c -o foo.cmx foo.ml
It will also produce a .o file and possibly a .cmi fi
Clemens Arth wrote:
/media/data vfatdefaults,utf8,umask=007,gid=46 0 1
I'm not 100% on how umask works, but I think that:
Using the user account that you tried to run CMake with, attempt to
create a file in the vfat mount, just to confirm it's a permission issue.
-- J
Tim Schooley wrote:
Unfortunately, that's right, but at least "make pristine" or "make
mrproper" is somewhat conventional as a "cleaner-than-clean" target.
True. I should probably do this, as I'm sure there will be other outputs
that need manual cleaning (doxygen stuff and test result files).
Tim Schooley wrote:
My second problem: I'm aware that you currently cant add custom commands
to the "clean" target, but is there _any_ way of cleaning up the kernel
module source directory when "clean" is called, even if it's a slightly
nasty hack ?
Do an ADD_CUSTOM_TARGET for something like `m
Paul Richards wrote:
Hi,
Is there a way to specify different warning levels for debug and release?
Under Visual Studio 2003 we like to build debug with warning level 4,
and release at warning level 3.
Can CMake do this?
I don't know if Visual Studio uses CFLAGS for warning level (I assume it
Alexander Neundorf wrote:
Now my question:
How can I make cmake look into the lib/pa20_64 or lib/sparcv9 directory
instead of the plain lib directory?
After running cmake, can't you do a `make edit_cache` and manually set
the appropriate cache entries (such as OPENGL_LIBRARIES,
OPENGL_INCLUDE
abhijeet mhatre wrote:
I am using cmake for my project. My project has a dependency which is a 3rd
party makefile based project.
I want cmake to just go to the other project directory and execute make over
there and come back.
I want this to be done when I type make.
Is there any way to do it?
Brandon Van Every wrote:
> On 6/19/07, Mike Jackson <[EMAIL PROTECTED]> wrote:
>> I have the following as part of my CMakeLists.txt file:
>>
>>
CONFIGURE_FILE(${MXADataModel_SOURCE_DIR}/src/Headers/MXAConfiguration.h.in
>>${PROJECT_BINARY_DIR}/MXAConfiguration.h @ONLY IMMEDIATE)
Gavin Beatty wrote:
Hello,
Apologies if this is silly/misplaced/misguided.
I'd like a way to automate decrypting (via gpg) a file, installing the
decrypted form and removing the temporary decrypted file from the
cmake dir.
I have tried:
MACRO(ETC_WPA_INSTALL src)
EXEC_PROGRAM(gpg
Clark J. Wang wrote:
Clark J. Wang wrote:
> Another question:
>
> By default `make clean' does not know how to clean the 3rd-party
> package. How can I add another command which will be run by `make
clean'?
>
Have you tried:
ADD_CUSTOM_COMMAND(
TARGET clean
lucatrv wrote:
2) Since I have two fortran compilers installed, sometimes I chose to
use gfortran and sometimes ifort.
However, If I use the following commands in this order:
PROJECT (hello Fortran)
SET (CMAKE_Fortran_COMPILER gfortran)
cmake still tests ifort working when creating the makefile.
John Donovan wrote:
I'm new to CMake and the list, so forgive me if this has been asked
before. We have a requirement to use GNU make to build our code, but we
want to use Visual Studio 2005 as the IDE. Can CMake produce VS makefile
projects but with a custom make command?
Hi, I'm also new to
30 matches
Mail list logo