Re: [CMake] SET_SOURCE_FILES_PROPERTIES different properties for same file, same library

2010-05-12 Thread Michael Wild
On 12. May, 2010, at 13:03 , Bryn Lloyd wrote: > Hi, > > I would like to cmakeify the UMFPACK/AMD libraries by Timothy Davis. > > I need to compile the same source file, multiple times, with different > flags/defines in order to link the resulting object files into one library. > > something

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-13 Thread Michael Wild
On 14. May, 2010, at 7:02 , Thangaraj wrote: > Hi All, > > I am trying to replace the clearmake build system with cmake for one of my > corporate projects. > This is a C++ based project and the interaction to database is being done > using pro*C/C++ for which a meta compiler was provided by orac

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Wild
On 14. May, 2010, at 9:19 , Michael Hertling wrote: > On 05/14/2010 08:05 AM, Michael Wild wrote: >> >> On 14. May, 2010, at 7:02 , Thangaraj wrote: >> >>> Hi All, >>> >>> I am trying to replace the clearmake build system with cmake for o

Re: [CMake] How to make the target_link_libraries link different library in different build type.

2010-05-16 Thread Michael Wild
On 17. May, 2010, at 4:25 , SONGFY wrote: >The target_link_libraries has any three tag to distinguish different build > type:debug|optimized|general. >But what I need is to specify different library in different build type, > for example I have three custom build type: debug, release, s

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Michael Wild
+1 from me. I think it also would simplify FindPython.cmake if I remember correctly. Perhaps an option (e.g. NAMES_FIRST) could be be added to find_{library,path,file,program} to trigger the new behavior. This would maintain backward-compatibility and make things more flexible. Michael On 17.

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
Naaa, the variables are simply called CMAKE_RUNTIME_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_ARCHIVE_OUTPUT_DIRECTORY. Aaron mixed them up with the respective target property names A few other things: - you can call INCLUDE_DIRECTORIES with more than one directory - NEVER use

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
lobs are evil? Not to get off subject, but care to expand on > that a bit? > > Thanks for the help, I really appreciate it!! > > Aaron C. Meadows > -Original Message- > From: Michael Wild [mailto:them...@gmail.com] > Sent: Monday, May 17, 2010 10:30 AM >

Re: [CMake] CMAKE -- MAKE problem -- TARGET_LINK_LIBRARIES related

2010-05-18 Thread Michael Wild
On 18. May, 2010, at 10:46 , Lucian Goron wrote: > this is my problem.. it tells me that it can not find the levmar package: > > luc...@schwarz:~/work/ransac$ make > Linking CXX executable TestAcquireGPS > /usr/bin/ld: cannot find -llevmar > collect2: ld returned 1 exit status > make[2]: *** [Te

Re: [CMake] How to handle git branches

2010-05-18 Thread Michael Wild
On 18. May, 2010, at 20:52 , Andreas Pakulat wrote: > Hi, > > I've recently bumped into a few problems with my usage of cmake on a > git-hosted project and am wondering what others are doing in such cases. > > The setup is as follows: The project's master branch has its dedicated > builddir. No

Re: [CMake] cmake ld fails

2010-05-18 Thread Michael Wild
On 19. May, 2010, at 7:17 , Michael Hertling wrote: > On 05/18/2010 11:13 PM, R. Bryn Fenwick wrote: >> >> Hi, >> >> I have received some code that works on one system, but is failing to >> work for me. Any suggestions how to debug this would be greatly >> appreciated. >> >> I think that I

Re: [CMake] Setting "Force Symbol Reference" field in Visual Studio

2010-05-19 Thread Michael Wild
On 19. May, 2010, at 18:52 , Felipe Sodré Silva wrote: > Hello all, > > I need to write a CMakeLists for a project in Visual Studio, which needs to > have the Force Symbol Reference field set to a given value. How can I > specify this value in CMakeLists.txt ? > > Best regards, > > Felipe If

Re: [CMake] CMAKE -- compiling questions

2010-05-20 Thread Michael Wild
On 20. May, 2010, at 10:58 , Lucian Goron wrote: > I now have lucid lynx and I am struggling to get my old code to work on this > system > anyway, when I compile some of it I get: > > luc...@schwarz:~/work/ransac$ make > Linking CXX executable elevationMap > CMakeFiles/elevationMap.dir/home/luci

Re: [CMake] Need cmake help for MacOsX

2010-05-21 Thread Michael Wild
On 21. May, 2010, at 16:42 , Jérôme VERNET wrote: > > Hi, > > I'm trying to update an existing cmake project to be used on MacOsX. After a > lot of thinking, I can now build, using the right framworks/library/using the > good SDK/on the right ARCHitecture... It was hard, because there is near

Re: [CMake] Need cmake help for MacOsX

2010-05-21 Thread Michael Wild
ow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Michael Wild sent by ibisMail! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opens

Re: [CMake] Need cmake help for MacOsX

2010-05-22 Thread Michael Wild
On 21. May, 2010, at 22:31 , Jerome Vernet wrote: > Le 21/05/10 22:08, Michael Wild a écrit : >> Yes, you have to copy every file individually. AFAIK there is a source file >> property you can set to specify the location inside the bundle. >> >> >> >

Re: [CMake] Need cmake help for MacOsX

2010-05-22 Thread Michael Wild
On 22. May, 2010, at 9:27 , Jerome Vernet wrote: > Le 22/05/10 09:11, Michael Wild a écrit : >> You're not thinking far enough ;-) >> >> set(APP_RSRCS_FRENCH French.lproj/SDLMain.nib ...) >> >> set_source_files_properties(${APP_RSRCS_FRENCH} PROPERTIES

Re: [CMake] Xcode generator linker flags

2010-05-23 Thread Michael Wild
On Wed, Apr 14, 2010 at 10:42 AM, Michael Wild wrote: > > On 14. Jan, 2010, at 16:46 , Michael Wild wrote: > > > > > On 14. Jan, 2010, at 16:18 , Michael Wild wrote: > > > >> Hi all > >> > >> I think that the Xcode generate is buggy as the l

Re: [CMake] Error in generated nmake files on Windows

2010-05-24 Thread Michael Wild
On 24. May, 2010, at 15:24 , Bo Thorsen wrote: > Hi all, > > I have as simple a CMakeLists.txt as possible: > > ADD_EXECUTABLE(comp_err comp_err.c) > > I did these two commands: > > $ set CMAKE_BUILD_TYPE=RelWithDebInfo > $ cmake -G "NMake Makefiles" > > I got this: > > Building C object ex

Re: [CMake] CMAKE -- compiling questions

2010-05-25 Thread Michael Wild
On 26. May, 2010, at 24:56 , Michael Hertling wrote: > On 05/26/2010 12:34 AM, Lucian Goron wrote: >> Back to square one ! >> I solved all the VTK problems, and now it gives me the same error as in the >> beginning. >> >> go...@schwarz:~/work/ransac/build$ make >> Linking CXX executable coloredE

Re: [CMake] Generator for NetBeans 6.9

2010-05-26 Thread Michael Wild
On 26. May, 2010, at 9:35 , Sebastian Meier wrote: > [...] > > Questions: > > - Do we already have a class or API for XML output I can use? Or will I have > to implement a small XmlWriter class? Looks like it doesn't exist. There's a class (cmXMLSafe) that properly escapes/encodes strings, bu

Re: [CMake] CMAKE -- compiling questions

2010-05-26 Thread Michael Wild
Of course I meant to rebuild EVERYTHING. Including VTK. Also, I suspect you built your VTK with VTK_USE_FFMPEG_ENCODER disabled which is probably why you get the linker-error. Michael On 26. May, 2010, at 13:03 , Lucian Goron wrote: > Hello Michael, I followed the steps suggested by you. Here

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Michael Wild
On 26. May, 2010, at 17:20 , Marcel Loose wrote: > Hi all, > > I was wondering how one should use find_package(MPI) to properly set the > C/C++ compiler(s). Normally, you call find_package() after the project() > command. However, by that time the CMAKE__COMPILER cache variables > have already b

Re: [CMake] FindMPI and setting C/C++ compiler

2010-05-26 Thread Michael Wild
ow do I handle MPI_LINK_FLAGS? > > Regards, > Marcel Loose. > > On Wed, 2010-05-26 at 17:38 +0200, Michael Wild wrote: >> On 26. May, 2010, at 17:20 , Marcel Loose wrote: >> >>> Hi all, >>> >>> I was wondering how one should use find_package(MPI) t

Re: [CMake] Remove lib prefix when generating shared lib under Windows

2010-05-28 Thread Michael Wild
On 28. May, 2010, at 11:05 , Thiébault Benoît wrote: > Hi everyone, > > I am using CMake to compile VTK using MinGW. The compilation goes with > problem, but it generates libvtkXXX.dll and libvtkXXX.dll.a files. > How can I remove this lib prefix to the generated libraries ? > > Thank you for

Re: [CMake] Remove lib prefix when generating shared lib under Windows

2010-05-28 Thread Michael Wild
ration. Should I add them manually in the CmakeCache.txt file ? > Sorry if this is a newbie question, I'm not very familiar yet with cmake > > Benoît > > Le 28 mai 2010 à 11:20, Michael Wild a écrit : > >> >> On 28. May, 2010, at 11:05 , Thiébault Benoît wrote: >&

Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Wild
On 1. Jun, 2010, at 16:23 , Hariharan wrote: > First off, I apologize if this is a very newbie-level question. > I need to set the value of a variable based on based on generated files, > using the "file" command. Something like: > file(GLOB varFoo "*.cpp") > > Here the cpp files are generated,

Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Wild
On 1. Jun, 2010, at 17:02 , Hariharan wrote: > I do use ADD_CUSTOM_COMMAND to generate the files, but the actual generation > is done by a different Perl script. In some cases, there is no direct > correlation between the name of the source file and the name of the > destination file; and the num

Re: [CMake] Enabling compiler flags for one file ONLY.

2010-06-01 Thread Michael Wild
On 2. Jun, 2010, at 5:44 , Michael Hertling wrote: > On 06/02/2010 04:24 AM, Clark Gaebel wrote: >> I have a massive .cpp file that has been autogenerated ahead of time. >> However, whenever I build it, according to gcc timing information, it >> spends all its time in "variable tracking". Therefo

Re: [CMake] problem with FindBLAS.cmake looking for cblas_dgemm

2010-06-02 Thread Michael Wild
On 16. Jul, 2009, at 11:45 , Vardan Akopian wrote: > Hello, > > I'm using cmake 2.6.2. > While trying to use the FindLAPACK module on a Linux system which has > ATLAS installed I stumbled upon a problem where the BLAS libraries > would not be found. By digging into FindBLAS.cmake I discovered th

Re: [CMake] problem with FindBLAS.cmake looking for cblas_dgemm

2010-06-02 Thread Michael Wild
On 2. Jun, 2010, at 15:09 , Crni Gorac wrote: > On Wed, Jun 2, 2010 at 2:08 PM, Michael Wild wrote: >> >> Just to correct a thing: cblas_dgemm is NOT an implementation detail, it is >> part of CBLAS which is the official C-interface to BLAS. > > I think "imp

Re: [CMake] Extending a target??

2010-06-02 Thread Michael Wild
On 2. Jun, 2010, at 16:34 , Doug Reiland wrote: > Is there anything to "add to" a target after it is declared? > > For example, > > add_library(foo STATIC foo1.c foo2.c) > > > > add_some_more(foo foo3.c) > or > add_some_more(foo foo3.o) > > If not, feasibility on how it could be impleme

Re: [CMake] Extending a target??

2010-06-02 Thread Michael Wild
On 2. Jun, 2010, at 17:51 , Doug Reiland wrote: > Yeah, I know I can do that. > I want to add foo3.c after the add_library() has been done. > The example is simple, but it describes what I hope to do. > > > On Wed, Jun 2, 2010 at 11:41 AM, Michael Wild wrote: >> >

Re: [CMake] cmake 2.8.1 compile problems on Solaris?

2010-06-03 Thread Michael Wild
On 3. Jun, 2010, at 13:32 , Attila Nagy wrote: > Hi all, > > is this known, or is this just me doing something wrong? > I cloned the cmake git repository, then changed to v2.8.1. > After a succesfull bootsrap, when I try to compile Cmake, I get the bellow > error (please find it at the end of t

Re: [CMake] cross-compiling / host compiling

2010-06-03 Thread Michael Wild
On 3. Jun, 2010, at 14:09 , Alexander Neundorf wrote: > On Wednesday 02 June 2010, Aeschbacher, Fabrice wrote: >> [Sorry if this message is posted twice, but first was before I subscribed >> to the list, so I'm not sure it was not rejected] >> >> >> Hi, >> >> [using cmake 2.8.1] >> >> I have

Re: [CMake] cmake 2.8.1 compile problems on Solaris?

2010-06-03 Thread Michael Wild
IOW is defined in this file on Solaris. > > I got the idea from a 1995 post > (http://www.mail-archive.com/info-...@transarc.com/msg05289.html) - this > still seems to be valid. > > Or am I still missing something? > If this is _not_ the case :), could this be corrected in the sou

Re: [CMake] How to determine the fortran compiler

2010-06-03 Thread Michael Wild
On 4. Jun, 2010, at 3:06 , Mike Jackson wrote: > What is the accepted way to determine the fortran compiler vendor? > Nothing is jumping out at me in the docs. > > Thanks > - > Mike Jackson www.bluequartz.net > Principal Software Engineer mike.jack...@bluequartz.ne

Re: [CMake] getting "new/updated" variable from PARENT SCOPE

2010-06-03 Thread Michael Wild
On 3. Jun, 2010, at 17:19 , Doug Reiland wrote: > Is there a way to an updated variable from parent scope? > > For example, > I am in a sub-directory > > set(FOO 2 PARENT_SCOPE) > > ... > > > retrieve FOO from PARENT_SCOPE > > I know sub-directory would get a copy of FOO, if it existed, whe

[CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
When downloading something from http://downloads.sourceforge.net/... you always get a 302 redirect to one of the many mirror servers. Unfortunately, it seems that file(DOWNLOAD ...) doesn't follow the redirect, but just stops and leaves an empty file behind. No error, no nothing. Is this intenti

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
t; >> list(GET status 0 status_code) >> >> list(GET status 1 status_string) >> >> >> if(NOT status_code EQUAL 0) >> >> message(FATAL_ERROR "error: downloading '${remote}' failed >> >> status_code: ${status_code}

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-04 Thread Michael Wild
e-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf > Of David Cole > Sent: Friday, June 04, 2010 9:47 AM > To: Michael Wild > Cc: CMake List > Subject: Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect) > > > > On Fri, Jun 4, 2010 at 8:03 AM, Michael Wild

Re: [CMake] file(DOWNLOAD) and HTTP 302 (redirect)

2010-06-05 Thread Michael Wild
Jun, 2010, at 20:49 , David Cole wrote: > Thanks, Michael and Aaron! > > I pushed your patch (+ a SetError line) here in CMake 'next' : > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef491f78218e255339278656bf6dc26073fef264 > > > On Fri, Jun 4, 2010 at

Re: [CMake] Different configurations for Debug and Release

2010-06-08 Thread Michael Wild
On 8. Jun, 2010, at 14:45 , Torri, Stephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Tyler Roscoe >> Sent: Mon 6/7/2010 4:25 PM >> To: Felipe Sodré Silva >> Cc: cmake@cmake.org >> Subject: Re: [CMake] Different configurations for Debug and Release >> >>> On Mon, Jun 07

Re: [CMake] Project initialization file path

2010-06-09 Thread Michael Wild
On 9. Jun, 2010, at 17:26 , Aby Louw wrote: > Hi, > > > I have a Linux project that reads an initialization file on startup to > get some file names and variables. > > When doing an in-source or out of source build, I generate the > initialization file in the CMAKE_BINARY_DIR and then also gen

Re: [CMake] add_custom_target problem

2010-06-09 Thread Michael Wild
On 9. Jun, 2010, at 17:47 , Hariharan Iyer wrote: > This may not be only because of using add_custom_target, but I have the > following problem. I have a custom target that depends on a generated file, > as: > add_custom_target(foo DEPENDS bar) > > where "bar" is a generated file, generated us

Re: [CMake] Best way to write add_test that depends on shared objects

2010-06-11 Thread Michael Wild
On 11. Jun, 2010, at 16:58 , Hickel, Kelly wrote: > I'm using CMake 2.8.1 and I want to write a simple test for one of the > executable targets, but it failes because the shared libraries aren't in the > directory or on the path. > > So, with something like the below, where bar and baz are sha

Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Michael Wild
This is OK for the easy case, where the source code doesn't require special defines to be set depending on the architecture. Some projects define symbols, such as FOO_PPC or FOO_X86 on the command line, instead of doing the detection in-source using e.g. __ppc__ or __x86_64__, respectively. In

Re: [CMake] Building in stages.

2010-06-21 Thread Michael Wild
> I'm looking for some suggestions on how to tackle a problem with staged > builds. > > In trying to convert a project which uses omake to build OCaml files I've > stumbled on the issue that building one sub-part (bar) of the project needs > the result of another sub-part (foo). The twist is tha

Re: [CMake] Building in stages.

2010-06-22 Thread Michael Wild
On 22. Jun, 2010, at 7:27 , Magnus Therning wrote: > On Mon, Jun 21, 2010 at 17:46, Aeschbacher, Fabrice > wrote: >> I would try following in foo/CmakeLists.txt: >> >> add_custom_command(TARGET foo >> POST_BUILD >> COMMAND touch bar/CMakeLists.txt >> ) >> >> This will force CMake

Re: [CMake] Can't build cmake 2.8.1 out of source

2010-06-23 Thread Michael Wild
On 23. Jun, 2010, at 20:51 , j s wrote: > I am on a macbook, and when I try to compile cmake 2.8.1 using cmake, I get > the following errors: > In file included from > /Users/jsanchez/tclmake/cmake/cmake-2.8.1/Source/kwsys/SystemInformation.cxx:29: > /cmake_debug/Source/cmsys/FundamentalType.h:75

Re: [CMake] Can't build cmake 2.8.1 out of source

2010-06-23 Thread Michael Wild
On 24. Jun, 2010, at 3:11 , Bill Hoffman wrote: > On 6/23/2010 6:12 PM, Michael Jackson wrote: > >>> >>> From a clean build, it does not work: >>> 1 wget >>> http://www.cmake.org/files/v2.8/cmake-2.8.1.tar.gz >>>2 tar xzvf cmake-2.8.1.t

Re: [CMake] Build rule for specific file extension

2010-06-25 Thread Michael Wild
On 25. Jun, 2010, at 13:26 , Mathias Lafeldt wrote: > Hi, > > is there a way to tell CMake how to "compile" files based on their > extension? > > For example, here's a make rule to build an object file from a *.lst file: > > %.o : %.lst >echo "#include \"irx_imports.h\"" > build-imports.c

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Wild
On 25. Jun, 2010, at 16:32 , Mark Moll wrote: > > On Jun 25, 2010, at 9:11 AM, Janosch Peters wrote: > >> On 2010-06-25 15:45:37 +0200, Michael Hertling said: >> >>> On 06/25/2010 03:17 PM, Janosch Peters wrote: On 2010-06-21 07:01:36 +0200, Michael Hertling said: > 8d87d12 What'

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Michael Wild
On 25. Jun, 2010, at 17:14 , Janosch Peters wrote: > On 2010-06-25 16:58:47 +0200, Michael Wild said: >> However, I think it's really difficult to guarantee consistency. If the code >> to be compiled contains stuff like the following >> #ifdef __APPLE__ >>

Re: [CMake] Various problems deploying a python module

2010-06-26 Thread Michael Wild
On 25. Jun, 2010, at 22:30 , Janosch Peters wrote: > On 2010-06-25 18:36:06 +0200, Michael Wild said: >>> AFAIK all directories you give gcc with the "-I" option will be searched >>> _before_ the standard include paths or C_INCLUDE_PATH. So I think you do >>

Re: [CMake] An observation about CTest

2010-06-27 Thread Michael Wild
On 28. Jun, 2010, at 7:03 , Andreas Mohr wrote: > Hello, > > On Sun, Jun 27, 2010 at 05:09:41PM -0400, cmake-requ...@cmake.org wrote: >> Your remarks focus on old-fashioned macros so it is possible you are not >> aware of functions? As far as I know, most or all macros can be replaced by >> func

Re: [CMake] Different configurations with Visual Studio

2010-06-28 Thread Michael Wild
On 28. Jun, 2010, at 15:17 , Mark Van Peteghem wrote: > Hi, > > I am using CMake to generate Visual Studio project files, later also for > CodeBlocks. > > It seems that CMake generates four different configurations for Visual > Studio: Debug, Release, MinSizeRel and RelWithDebInfo. However, I n

Re: [CMake] Exclude CMakeFiles path from GLOB_RECURSE

2010-07-01 Thread Michael Wild
On 1. Jul, 2010, at 9:45 , Diablo 666 wrote: > > Hi, > > I'm currently trying to use the following line to include all source files > into my build: > > file (GLOB_RECURSE Files_CPP *.cpp) > add_executable(test >${Files_CPP} > ) > > Everything runs fine while using an out-of-source build

Re: [CMake] Exclude CMakeFiles path from GLOB_RECURSE

2010-07-01 Thread Michael Wild
On 1. Jul, 2010, at 10:15 , Diablo 666 wrote: > > Hi, > > thanks for your reply. > >> 1. Never use GLOB_RECURSE. It's evil. E.g. if you add or remove source >> files, CMake has no way of knowing that it should be re-run. > I have tested rerunning cmake manually and it worked out well. (Testca

Re: [CMake] Detecting Xcode in CMake scripts

2010-07-01 Thread Michael Wild
On 2. Jul, 2010, at 6:02 , Tron Thomas wrote: > I currently have a project that I configure using CMake 2.8, and because of a > problem with Xcode on the Macintosh I need to add some checks and adjust > things in the CMake scripts to change the build configuration when Xcode is > the intended

Re: [CMake] Relative paths in debug info

2010-07-02 Thread Michael Wild
On 2. Jul, 2010, at 9:46 , Mathias Lafeldt wrote: > Hello, > > is it possible to tell CMake to write relative source file paths in the > debug information of an object file (aka .mdebug section)? > > Here's a sample object file: > > $ strings -a build/CMakeFiles/config.dir/src/strbuf.c.o | gre

Re: [CMake] Setting up standard library output directory

2010-07-04 Thread Michael Wild
On Sat, Jul 3, 2010 at 11:34 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > That cmake variable controls where the compiled library will be placed > during the compilation process not the install process. You will > probably have to use the "install" command to tell cmake that you wan

Re: [CMake] CMAKE_COMPILER_IS_GNUC vs. CMAKE_COMPILER_IS_GNUCC

2010-07-05 Thread Michael Wild
On 5. Jul, 2010, at 7:46 , Todd Gamblin wrote: > The documentation here: > > > http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_COMPILER_IS_GNULANG > > is in conflict with the documentation here: > > http://www.cmake.org/Wiki/CMake_Useful_Variables > > And this th

Re: [CMake] CMAKE_COMPILER_IS_GNUC vs. CMAKE_COMPILER_IS_GNUCC

2010-07-05 Thread Michael Wild
On 5. Jul, 2010, at 12:00 , Todd Gamblin wrote: > > On Jul 5, 2010, at 1:23 AM, Michael Wild wrote: > >> >> On 5. Jul, 2010, at 7:46 , Todd Gamblin wrote: >> >>> The documentation here: >>> >>> >>> http://*www.*cmake.org/

Re: [CMake] How does one find blas and lapack on OSX?

2010-07-05 Thread Michael Wild
On 5. Jul, 2010, at 18:59 , John R. Cary wrote: > On 7/5/2010 10:54 AM, James C. Sutherland wrote: >> >> >> On Mon, Jul 5, 2010 at 10:44 AM, John R. Cary > > wrote: >> >>On 7/5/2010 9:37 AM, James C. Sutherland wrote: >>> >>> >>>On Mon, Jul 5, 2010 at 9:34 AM,

Re: [CMake] Recursive list append

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 10:06 , Diablo 666 wrote: > > Hi, > > say I create a list in the top level CMakeLists.txt and call a subdirectory. > The subdirectory should add some entries to the list, then the top level > should use the full list. How can I accomplish this? > > Best regards, > Andreas

Re: [CMake] Recursive list append

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 10:41 , Diablo 666 wrote: > > If I use SET with PARENT_SCOPE, wouldn't this delete old entries? Say I have > more than one subdirectory. Can I append entries from both subdirectories > this way? CMakeLists.txt: ### set(some_list val1 val2 val3) add_subdirector

Re: [CMake] contribution: FindMySQL.cmake

2010-07-06 Thread Michael Wild
On 6. Jul, 2010, at 21:01 , Arnaud GELAS wrote: > Hi guys, > > We have been for our own projects the following file to find mysql packages, > and I would like to contribute it to the community. > > Note: it works fine for MySQL 5.1 on Windows (tested on XP and 7), Mac > (tested on 10.5 and 10

Re: [CMake] option bug ?

2010-07-07 Thread Michael Wild
On 7. Jul, 2010, at 9:32 , Michael Hertling wrote: > On 07/03/2010 01:03 AM, Chris Hillery wrote: >> There's a slightly nicer work-around: Change project A's CMakeLists to set >> PROJB_OPENCV_LINK as a cache variable, ie, SET(PROJB_OPENCV_LINK NO CACHE >> BOOLEAN "doc"). I've tested it locally an

Re: [CMake] Propagating variable to toplevel parent

2010-07-07 Thread Michael Wild
On 7. Jul, 2010, at 14:45 , Mathieu Malaterre wrote: > On Wed, Jul 7, 2010 at 1:07 PM, Bo Thorsen wrote: >> Den 07-07-2010 12:34, Mathieu Malaterre skrev: >>> >>> Hi there, >>> >>> I am wondering if I am missing anything here. How would one >>> propagate a variable across subdirectories in c

Re: [CMake] CMAKE_DEBUG_POSTFIX

2010-07-07 Thread Michael Wild
On 7. Jul, 2010, at 15:39 , Diablo 666 wrote: > > Hi again, > > I tried using the CMAKE_DEBUG_POSTFIX to add a D to all library names on > Windows only. On Linux, they should not have a closing D. To this point, > everything is fine. > > But how can I link against these libraries? To keep th

Re: [CMake] building tests

2010-07-07 Thread Michael Wild
On 7. Jul, 2010, at 16:01 , Paul Harris wrote: > Hi all, > > I have looked and can't find the answer, so I turn to the list. > > I have a CMakeLists.txt and a subdirectory called utils, which also has its > own CMakeLists.txt > > In the parent CML.txt, I have something like: > > ENABLE_TESTIN

Re: [CMake] building tests

2010-07-07 Thread Michael Wild
On 8. Jul, 2010, at 4:40 , Paul Harris wrote: > On 7 July 2010 23:05, Michael Wild wrote: > >> >> On 7. Jul, 2010, at 16:01 , Paul Harris wrote: >> >>> Hi all, >>> >>> I have looked and can't find the answer, so I turn to the list. &g

Re: [CMake] building tests

2010-07-08 Thread Michael Wild
On 8. Jul, 2010, at 7:25 , Paul Harris wrote: > On 8 July 2010 12:56, Michael Wild wrote: > >> >> On 8. Jul, 2010, at 4:40 , Paul Harris wrote: >> >>> On 7 July 2010 23:05, Michael Wild wrote: >>> >>>> >>>> On 7. Jul, 2010

Re: [CMake] Help getting my simple OpenGL project to use cmake

2010-07-08 Thread Michael Wild
Hi Comments are inline... On 8. Jul, 2010, at 10:05 , Craig Pemberton wrote: > Hello everyone, > > I am working on converting my project from using a handwritten > Makefile to using cmake. > > I have been playing with cmake but I keep running into problems and > I'm probably writing really ugl

Re: [CMake] Passing Function Arguments

2010-07-08 Thread Michael Wild
On 8. Jul, 2010, at 10:35 , Johny wrote: > I am trying to write a cmake function which imitates the functionality of wc > -l for unix. However i can't seem to be able to figure out how to store the > result into the variable which is passed to the function. > > function (wcl fileName lines) >

Re: [CMake] FILE command working

2010-07-09 Thread Michael Wild
On 9. Jul, 2010, at 11:24 , Johny wrote: > Hi, > > I was working with the FILE(STRINGS filename lineList) and i discovered that > i end up getting a list which has a lesser number of strings than the actual > lines in the file. However this happens with only some files, i went through > those

Re: [CMake] FILE command working

2010-07-09 Thread Michael Wild
It works for me if I use file(STRINGS test.txt test_str) foreach(line IN LISTS test_str) message("line = ${line}") endforeach() Problem is that empty lines result in empty elements in test_str, which are discarded by the old-style foreach loop over a list. Michael On 9. Jul, 2010, at 13:27 ,

Re: [CMake] building tests

2010-07-09 Thread Michael Wild
On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: > On 07/08/2010 09:47 AM, Paul Harris wrote: >> On 8 July 2010 15:31, Michael Wild wrote: >> >>> >>> On 8. Jul, 2010, at 7:25 , Paul Harris wrote: >>> >>>> On 8 July 2010 12:56, Michael

Re: [CMake] Parallel execution

2010-07-11 Thread Michael Wild
On 11. Jul, 2010, at 20:00 , Angel Tsankov wrote: > Can cmake take advantage of multi-core CPUs and run several jobs > simultaneously? > > Regards, > Angel Tsankov Not CMake itself, no. But if you use a GNU Makefile based generator or the Xcode generator (I don't know about the others...), yo

Re: [CMake] building tests

2010-07-13 Thread Michael Wild
On 14. Jul, 2010, at 6:40 , Paul Harris wrote: > On 11 July 2010 20:36, Michael Hertling wrote: > >> On 07/10/2010 06:54 PM, Paul Harris wrote: >>> On 9 July 2010 22:39, Michael Wild wrote: >>> >>>> >>>> On 9. Jul, 2010, at 15:48 , Mich

Re: [CMake] building tests

2010-07-14 Thread Michael Wild
[snip] >> >> Ok first thing: I had two cmakes on my system, one was 2.8.1, and an older >> 2.6.3 that snuck in through an incorrect script of mine. >> >> Second thing: the TARGET_FILE thing works. But the usual add_test(name >> command) does not. > > This is because you set the CMAKE_RUNTIME_

Re: [CMake] Swig Generation

2010-07-14 Thread Michael Wild
On 14. Jul, 2010, at 22:36 , michael.schm...@l-3com.com wrote: > Hello again, > > I read the FAQ on Swig generation, but I still have a couple questions. > Here's a snippet from my original Makefile.am: > > mylib_la_SOURCES = swig_main.i regular.cxx swig_gen.cxx > > ... > > swig_gen.cxx : swi

Re: [CMake] Swig Generation

2010-07-15 Thread Michael Wild
On 15. Jul, 2010, at 18:09 , michael.schm...@l-3com.com wrote: >> Never done it myself, but reading the FAQ and the docs, I'd suggest >> something like this: >> >> find_package(SWIG REQUIRED) >> include(${SWIG_USE_FILE}) >> find_package(PythonLibs REQUIRED) >> include_directories( >> ${CMAKE_CUR

Re: [CMake] Swig Generation

2010-07-15 Thread Michael Wild
On 15. Jul, 2010, at 19:14 , michael.schm...@l-3com.com wrote: >> Did you enable the -includeall option? If so, that might be the problem >> here. Try removing it, I just copied it from the FAQ. >> >> Michael > > For someone new to cmake, that option seems non-intuitive. Is there > documentati

Re: [CMake] Finding Debug Versions of Qt4 Frameworks on OS X

2010-07-19 Thread Michael Wild
On 19. Jul, 2010, at 19:59 , Michael Jackson wrote: > Wonder why I have never seen this before but with CMake 2.8.x and a Qt4 based > project on OS X when finding the Qt4 frameworks only the release version is > found, ie, the Debug version that is located inside the framework is NOT > found b

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread Michael Wild
Hi I hope the inline comments below solve your problems. And please, don't cross-post... On 20. Jul, 2010, at 19:06 , kent williams wrote: > This is with cmake version 2.8.1 on OS X 10.6. > > I had a project using CMake and Qt. As long as I only used one QT > Designer-generated .ui file, eve

Re: [CMake] add_test and $(Configuration) with Visual Studio Generator

2010-07-20 Thread Michael Wild
On 20. Jul, 2010, at 21:39 , Kelly Thompson wrote: > Hi, > > > > I am having trouble with add_test and the MSVC macro $(Configuration) when I > generate project files for Visual Studio. I am hoping someone on this list > can provide a solution. > > > > Scenario: (This is an outline of what

Re: [CMake] Finding Python3

2010-07-21 Thread Michael Wild
On 21. Jul, 2010, at 9:56 , Marcel Loose wrote: > On Tue, 2010-07-20 at 09:18 -0700, Alan W. Irwin wrote: >> On 2010-07-20 17:12+0200 Michael Hertling wrote: >> >>> On 07/20/2010 03:26 AM, Alan W. Irwin wrote: On 2010-07-20 00:51+0200 Michael Hertling wrote: > On 07/18/2010 10:14

Re: [CMake] Bug? project(X T) returns weird error

2010-07-21 Thread Michael Wild
On 21. Jul, 2010, at 15:48 , Olaf van der Spek wrote: > Hi, > > I forgot to use quotes, but cmake doesn't make that obvious. > Shouldn't it return a better error message? > > $ cat CMakeLists.txt > project(X T) > > $ cmake . > CMake Error: Error required internal CMake variable not set, cmake

Re: [CMake] CPACK_PACKAGE_NAME

2010-07-21 Thread Michael Wild
On 21. Jul, 2010, at 16:53 , Olaf van der Spek wrote: > On Wed, Jul 21, 2010 at 4:24 PM, Olaf van der Spek > wrote: >> Hi, >> >> http://www.itk.org/Wiki/CMake:CPackConfiguration >> >>> CPACK_PACKAGE_NAME: Package name, defaults to the project name. >> >> I've got "project(xbttracker)" but it

Re: [CMake] cmake generators on windows: nmake versus jom

2010-07-21 Thread Michael Wild
I can't help either (no Windows, see?) but I have one personal request (don't know how others here think about this): Could you please turn off HTML emails? Because * it hurts my eyes (as in "it's dead ugly") * it doesn't respect my favorite font, text size, and quoting display style * it is usu

Re: [CMake] Finding Python3

2010-07-21 Thread Michael Wild
On 21. Jul, 2010, at 18:59 , Alan W. Irwin wrote: > On 2010-07-21 08:50-0700 Alan W. Irwin wrote: > >> To draw this subthread to a definite conclusion, here is what works >> for me now to get python version for either python2 or python3. >> >> softw...@raven> python -c \ >> 'import sys; print("

Re: [CMake] Finding Python3

2010-07-21 Thread Michael Wild
On 22. Jul, 2010, at 3:09 , Michael Hertling wrote: > On 07/21/2010 10:26 AM, Michael Wild wrote: >> >> On 21. Jul, 2010, at 9:56 , Marcel Loose wrote: >> >>> On Tue, 2010-07-20 at 09:18 -0700, Alan W. Irwin wrote: >>>> On 2010-07-20 17:12+0200 Michael

Re: [CMake] Find out which build type is currently used

2010-07-21 Thread Michael Wild
On 22. Jul, 2010, at 8:38 , norulez wrote: > How can I find out which build type is used? Because if I didn't define > CMAKE_BUILD_TYPE, this variable is uninitialized. That depends. For single-configuration generators (i.e. Makefile based), the user has to set CMAKE_BUILD_TYPE. If it is empty

Re: [CMake] Finding Python3

2010-07-22 Thread Michael Wild
On 22. Jul, 2010, at 9:18 , Alan W. Irwin wrote: > On 2010-07-22 03:09+0200 Michael Hertling wrote: >> [...] one should >> prefer to improve the find modules and get rid of those non-equivalent >> alternatives after the NAMES option, in particular hardcoded version >> lists, and freshly develope

Re: [CMake] Find out which build type is currently used

2010-07-22 Thread Michael Wild
On 22. Jul, 2010, at 9:55 , norulez wrote: > I want to set the debug prefix on windows when I build in debug mode, so I > check if Debug is in CMAKE_BUILD_TYPE. > I use both, Visual Studio and the MinGW compiler > > Am 22.07.2010 um 08:53 schrieb Michael Wild : > >> &

Re: [CMake] Finding Python3

2010-07-22 Thread Michael Wild
On 22. Jul, 2010, at 10:17 , Marcel Loose wrote: [...] > > Hi Michael and others, > > I mostly agree with what your saying. However, IMHO, you refer to a > "perfect world" situation, where all Find modules properly use VERSION > to specify a version number and do not abuse NAMES for that. > > I

Re: [CMake] Finding Python3

2010-07-22 Thread Michael Wild
d this as a note to 10718, and a pointer to this whole thread > if there's not already one there. > > > Thanks, > David Cole > > > On Thu, Jul 22, 2010 at 4:36 AM, Michael Wild wrote: > >> >> On 22. Jul, 2010, at 10:17 , Marcel Loose wrote: >>

Re: [CMake] Avoid losing changes in Xcode when changing CMakeLists.txt

2010-07-22 Thread Michael Wild
On 22. Jul, 2010, at 15:57 , David Ojeda wrote: > Hello CMakers! > > I am coding with some teammates that use Xcode as their IDE. Everything is > working fine thanks to CMake, except for the following situation: > > 1. Developer X checkouts a project from svn and uses CMake to generate their >

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-22 Thread Michael Wild
On 22. Jul, 2010, at 17:07 , kent williams wrote: > It's perfectly clear to me now, but I bet I'm not the first (or last!) > person to run into issues like this and get roadblocked. > > Every software task seems to have its stumbling block. > > In Medical Image Processing we spend a lot of our

  1   2   3   4   5   6   7   8   9   10   >