Re: [CMake] Cmake inline macro?

2007-09-15 Thread Jack Kelly
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

Re: [CMake] Cmake inline macro?

2007-09-14 Thread Jack Kelly
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

Re: [CMake] Hi and some newbie questions

2007-09-14 Thread Jack Kelly
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

Re: [CMake] Hi and some newbie questions

2007-09-13 Thread Jack Kelly
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

Re: [CMake] What is required to run CMake with Unix Makefile option on windows?

2007-09-13 Thread Jack Kelly
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 ___

Re: [CMake] Fltk project, visual studio 2005 (8) -- using FL/Fl.H

2007-09-13 Thread Jack Kelly
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

Re: [CMake] Project being (unnecessarily) relinked

2007-09-12 Thread Jack Kelly
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

Re: [CMake] disable compiler test

2007-09-10 Thread Jack Kelly
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

Re: [CMake] Project being (unnecessarily) relinked

2007-09-05 Thread Jack Kelly
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

Re: [CMake] Newbie question, building the exe to a directory

2007-09-02 Thread Jack Kelly
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

Re: [CMake] Feature request

2007-08-31 Thread Jack Kelly
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

Re: [CMake] Using fluid, fltk, cmake and own headers

2007-08-28 Thread Jack Kelly
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

Re: [CMake] Programs linked to .a or .so libraries?

2007-08-28 Thread Jack Kelly
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

Re: [CMake] Turning on warnings when compiling.

2007-08-28 Thread Jack Kelly
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

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Jack Kelly
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

Re: [CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Jack Kelly
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

Re: [CMake] Howto define build order

2007-08-22 Thread Jack Kelly
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

Re: [CMake] always execute CUSTOM_COMMAND

2007-08-21 Thread Jack Kelly
[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

[CMake] Supporting languages where compilation of one file produces multiple files

2007-08-18 Thread Jack Kelly
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

Re: [CMake] Running cmake to create binaries on a VFAT partition (LINUX)

2007-08-18 Thread Jack Kelly
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

Re: [CMake] linux kernel module, output directory and clean issues

2007-08-16 Thread Jack Kelly
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).

Re: [CMake] linux kernel module, output directory and clean issues

2007-08-16 Thread Jack Kelly
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

Re: [CMake] Specifying different warning levels for debug and release

2007-07-10 Thread Jack Kelly
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

Re: [CMake] non default architecture builds

2007-07-09 Thread Jack Kelly
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

Re: [CMake] integrating cmake project with third party project

2007-06-25 Thread Jack Kelly
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?

Re: [CMake] Adding Generated Header to VS Project

2007-06-19 Thread Jack Kelly
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)

Re: [CMake] Storing and auto-decrypting sensitive files in cmake SAFELY and SANELY

2007-06-17 Thread Jack Kelly
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

Re: [CMake] Re: How to integrate 3rd-party software into cmake system

2007-06-09 Thread Jack Kelly
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

Re: [CMake] Three problems with cmake under windows

2007-06-05 Thread Jack Kelly
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.

Re: [CMake] Visual Studio GNU make projects

2007-06-01 Thread Jack Kelly
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