Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-07 Thread Michael Wild
On 8. Jul, 2009, at 7:44, Xiangyun Kong wrote: [fixed quoting] --- On Tue, 7/7/09, Bill Hoffman wrote: From: Bill Hoffman Subject: Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ? To: "Xiangyun Kong" Cc: cmake@cmake.org Date: Tuesday, July 7, 2009, 5:34 PM Xia

Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-07 Thread Xiangyun Kong
Thanks. I am not sure how to ask CMAKE create unix makefiles on windows. Xiangyun --- On Tue, 7/7/09, Bill Hoffman wrote: > From: Bill Hoffman > Subject: Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated > Makefiles ? > To: "Xiangyun Kong" > Cc: cmake@cmake.org > Date: Tuesday

Re: [CMake] Complete Path of source files being displayed in obj Files

2009-07-07 Thread Malhotra, Anupam
Hi David Thanks for the reply. I am not concerned about the names of object files. I was talking about the contents of the object files. If you analyze the object files, they contain the complete paths of corresponding source files. This complete path is not desirable for us. We want the object

Re: [CMake] Windows GCC 4.4 with shared libstdc++

2009-07-07 Thread Gregory Peele ARA/CFD
I think I may have figured out my issue on my own. I missed a very important line in the MinGW GCC 4.4 docs: 6. KNOWN ISSUES - libstdc++_s is only partially implemented. I monkeyed around with my linker settings by modifying my EXE / LIBARY / MODULE linker flags to contain "-nodefaultlibs" an

Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-07 Thread Bill Hoffman
Xiangyun Kong wrote: I am getting some problems in using CMAKE on windows. With CMAKE generated Makefiles, when I use gnu make, I am getting the following errors, NMAKE : fatal error U1065: invalid option '-' It seems the -$(MAKEFLAGS) on the Make command options lead to the problem. The MAKEF

[CMake] TEST_BIG_ENDIAN fails for a CXX project

2009-07-07 Thread gryan
Hi! I have a project specified as CXX explicitly, and it requires knowing the endian of the machine. I can't seem to use the TEST_BIG_ENDIAN module, because it's a .c compilation and I get a ... /CheckIncludeFile.c". TRY_COMPILE only works for enabled languages. Currently enabled languages are: C

[CMake] ctest & config type

2009-07-07 Thread Clinton Stimpson
I have a ctest script with a set(CTEST_BUILD_CONFIGURATION "Release") And in a CMakeLists.txt file I've got an add_test(Foo ${CMAKE_CTEST_COMMAND} -C \${CTEST_CONFIGURATION_TYPE} --build-and-test etc... ) But when ctest_test() is called in my ctest script, CTEST_CONFIGURATION_TYPE

[CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-07 Thread Xiangyun Kong
I am getting some problems in using CMAKE on windows. With CMAKE generated Makefiles, when I use gnu make, I am getting the following errors, NMAKE : fatal error U1065: invalid option '-' It seems the -$(MAKEFLAGS) on the Make command options lead to the problem. The MAKEFLAGS is not defined in

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Richard Wackerbarth
Yes, a "noise suppressor" for the mailing list. On Jul 7, 2009, at 4:10 PM, Tyler Roscoe wrote: On Tue, Jul 07, 2009 at 04:52:18PM -0400, Bill Hoffman wrote: Hmmm ... so LinkedIn is a Kitware project now? Yea, CLinkedIn :) I smell a feature request brewing... tyler __

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Tyler Roscoe
On Tue, Jul 07, 2009 at 04:52:18PM -0400, Bill Hoffman wrote: > >Hmmm ... so LinkedIn is a Kitware project now? > > Yea, CLinkedIn :) I smell a feature request brewing... tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects a

Re: [CMake] normalize paths

2009-07-07 Thread James Bigler
Ugh, I forgot about get_filename_component: get_filename_component(VarName FileName PATH|ABSOLUTE|NAME|EXT|NAME_WE|REALPATH [CACHE]) ABSOLUTE seems to normalize the file paths. James On Tue, Jul 7, 2009 at 2:48 PM

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Bill Hoffman
Matthew J Smith wrote: Hmmm ... so LinkedIn is a Kitware project now? Yea, CLinkedIn :) -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

[CMake] normalize paths

2009-07-07 Thread James Bigler
Is there a way to normalize or flatten a path to a file? I have two paths that I need to compare: C:\path\to\file and C:\path\to\other\..\file I need a way to collapse the second paths into something that looks like the first, so that I could use a string comparison on the filenames to see if th

Re: [CMake] help using try_run with custom build type

2009-07-07 Thread George Neill
Hi all, On Mon, Jun 29, 2009 at 10:15 PM, George Neill wrote: > Hi folks, > > I apologize for the long email, but, I am having some troubles with > try_run (cmake 2.6.4/sun gcc/Solaris 10).  I have created my own > CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to "-m64 > -std=c99".

Re: [CMake] ctest_memcheck with start/end/stride options

2009-07-07 Thread Clinton Stimpson
Clinton Stimpson wrote: Is there a way to control start/end/stride with ctest_memcheck() like one can with ctest_test() ? I tried the -I flag when calling ctest with my script, but that didn't make a difference. Never mind, I guess ctest_memcheck() takes START, END, STRIDE as arguments, b

[CMake] ctest_memcheck with start/end/stride options

2009-07-07 Thread Clinton Stimpson
Is there a way to control start/end/stride with ctest_memcheck() like one can with ctest_test() ? I tried the -I flag when calling ctest with my script, but that didn't make a difference. Clint ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Aaron Turner
2009/7/7 Adolfo Rodríguez : > ??? > > Is this an unintended mistake, the biddings of malware, or a self-publicity > stunt? > > (or am I just not getting it :P ) Seems to happen all the time on lists. People import all their contacts into LinkedIn, etc and invite them all without bothering to take

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Matthew J Smith
On 07/07/2009 08:15 PM, Sonali Barua wrote: I'd like to add you to my professional network on LinkedIn. - Sonali PS: Here is the link: https://www.linkedin.com/e/isd/642150935/Gai_0Tap/ Sonali Barua has a LinkedIn profile to connect with colleagues, find experts, and explore new opportunities

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Adolfo Rodríguez
??? Is this an unintended mistake, the biddings of malware, or a self-publicity stunt? (or am I just not getting it :P ) On Tue, Jul 7, 2009 at 9:15 PM, Sonali Barua wrote: > LinkedIn > > I'd like to add you to my professional network on LinkedIn. > > - Sonali > > PS: Here is the link: > http

[CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Sonali Barua
LinkedIn I'd like to add you to my professional network on LinkedIn. - Sonali PS: Here is the link: https://www.linkedin.com/e/isd/642150935/Gai_0Tap/ It is free to join and takes less than 60 seconds to sign up. -- Sonali Barua has

Re: [CMake] Fedora 11 and mingw32

2009-07-07 Thread Alexander Neundorf
On Tuesday 07 July 2009, du...@identicalsoftware.com wrote: > Quoting "Hendrik Sattler" : > > Zitat von du...@identicalsoftware.com: > >> Adding /usr/i686-pc-mingw32/sys-root/mingw isn't going to accomplish > >> anything as /include is not in the list that FindSDL.cmake is looking > >> at. It is l

Re: [CMake] Fedora 11 and mingw32

2009-07-07 Thread dulsi
Quoting "Hendrik Sattler" : Zitat von du...@identicalsoftware.com: That doesn't make sense to me. The toolchain file is usually not part of the project. Did Fedory provide the cmake toolchain file or did you write it yourself. I guess the latter. Neither should you ship toolchain files with you

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-07 Thread Will Dicharry
Denis Scherbakov wrote: I have written a find module that invokes the hdf5 wrapper compiler to determine libraries and includes that are necessary for clients of HDF5. I tried to follow the guidelines for formatting and naming set forth in the module readme. At the moment, the module has been t

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-07 Thread Denis Scherbakov
> I have written a find module that invokes the hdf5 wrapper > compiler to determine libraries and includes that are > necessary for clients of HDF5.  I tried to follow the > guidelines for formatting and naming set forth in the module > readme.  At the moment, the module has been tested on > Linu

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-07 Thread Will Dicharry
Mike Jackson wrote: Can you post your module or attach it to a bug/feature request? I also have a FindHDF5 module and I would like to compare the two. Sorry about that, I meant to attach the module to the first email. It is attached to this one. --Will Mike Jackson www.bluequartz.net On

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-07 Thread Mike Jackson
Can you post your module or attach it to a bug/feature request? I also have a FindHDF5 module and I would like to compare the two. Mike Jackson www.bluequartz.net On Tue, Jul 7, 2009 at 11:03 AM, Will Dicharry wrote: > Hi All, > > I have written a find module that invokes the hdf5 wrapper compile

[CMake] [New Module] FindHDF5.cmake

2009-07-07 Thread Will Dicharry
Hi All, I have written a find module that invokes the hdf5 wrapper compiler to determine libraries and includes that are necessary for clients of HDF5. I tried to follow the guidelines for formatting and naming set forth in the module readme. At the moment, the module has been tested on Lin

Re: [CMake] Troubles with add_subdirectory

2009-07-07 Thread Tyler Roscoe
On Tue, Jul 07, 2009 at 10:33:59AM +0200, Pierre-Julien Villoud wrote: > cmake_minimum_required(VERSION 2.6) > > add_subdirectory(Project1) > add_subdirectory(Project2) > add_subdirectory(Project3) > > Project1\CMakeFiles\ Project1.dir\build.make:43: CMakeFiles/ > Project1.dir/depend.make: No su

Re: [CMake] How To Copy Media Files Into Out-Of-Source Build

2009-07-07 Thread Tyler Roscoe
On Mon, Jul 06, 2009 at 05:39:08PM +0200, Michael Wild wrote: > Windows Vista and newer do. On older versions create_symlink just does > nothing... Hendrik posted a link with more details downthread, but I wanted to let you know that cmake-2.6.2 on Vista Professional doesn't even show me create_

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Marcel Loose
On Tue, 2009-07-07 at 14:08 +0200, Michael Wild wrote: > On 7. Jul, 2009, at 12:35, Marcel Loose wrote: > > > On Tue, 2009-07-07 at 11:19 +0200, Michael Wild wrote: > >> On 7. Jul, 2009, at 11:08, Marcel Loose wrote: > >> > >> [fixed quoting] > >> > >>> On Tue, 2009-07-07 at 10:32 +0200, Michael W

Re: [CMake] Fedora 11 and mingw32

2009-07-07 Thread Hendrik Sattler
Zitat von du...@identicalsoftware.com: Quoting "Hendrik Sattler" : Zitat von du...@identicalsoftware.com: Adding /usr/i686-pc-mingw32/sys-root/mingw isn't going to accomplish anything as /include is not in the list that FindSDL.cmake is looking at. It is looking for /usr/include. I tried i

Re: [CMake] Fedora 11 and mingw32

2009-07-07 Thread dulsi
Quoting "Hendrik Sattler" : Zitat von du...@identicalsoftware.com: Adding /usr/i686-pc-mingw32/sys-root/mingw isn't going to accomplish anything as /include is not in the list that FindSDL.cmake is looking at. It is looking for /usr/include. I tried it anyway and it still doesn't find SDL.

Re: [CMake] Have an export file split in 2 parts? Need caused by a cmake bug?

2009-07-07 Thread Alexandre.Feblot
From: Alexander Neundorf [mailto:a.neundorf-w...@gmx.net] Sent: Monday, 06 July 2009 21:52 > On Monday 06 July 2009, alexandre.feb...@thomsonreuters.com wrote: > > Hi, > > > > I need to export() some libraries, but I need to have the part > > > > ADD_LIBRARY( STATIC IMPORTED) > > > > and the

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Michael Wild
On 7. Jul, 2009, at 12:35, Marcel Loose wrote: On Tue, 2009-07-07 at 11:19 +0200, Michael Wild wrote: On 7. Jul, 2009, at 11:08, Marcel Loose wrote: [fixed quoting] On Tue, 2009-07-07 at 10:32 +0200, Michael Wild wrote: On 7. Jul, 2009, at 10:11, Marcel Loose wrote: Hi all, I noticed th

Re: [CMake] Complete Path of source files being displayed in obj Files

2009-07-07 Thread David Cole
I don't know of a way to change the obj file names. Do you have an actual problem because of these file names? Why do you care what the name of the obj files is? On Tue, Jul 7, 2009 at 7:38 AM, Malhotra, Anupam < anupam.malho...@safenet-inc.com> wrote: > Hi > > > > I am using CMake to create a

Re: [CMake] comparing program output / getting path to current build of executable.

2009-07-07 Thread Philip Lowman
I believe the way we do this is to use variables like CMAKE_BINARY_DIR to identify the build tree and then append "/bin" and the name of the binary in order to run the test. I don't recall doing anything VS specific within the CMake scripts to make it work. IIRC Visual Studio's generator appends

[CMake] Complete Path of source files being displayed in obj Files

2009-07-07 Thread Malhotra, Anupam
Hi I am using CMake to create a Visual Studio workspace. There are a number of projects within the main workspace. I have given the relative paths of source files in CMakeLists.txt files. However, When the Visual Studio projects are compiled using msdev, the resulting object files contain the c

Re: [CMake] How to FORCE an OPTION?

2009-07-07 Thread Philip Lowman
You could write a function called force_option() or something like that that simply calls set() On Tue, Jul 7, 2009 at 4:30 AM, Marcel Loose wrote: > Hi all, > > Is there a way to FORCE an OPTION, other than using > > set(VAR CACHE BOOL "docstring" FORCE) > > The reason I'm asking is that I'm

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Marcel Loose
On Tue, 2009-07-07 at 11:19 +0200, Michael Wild wrote: > On 7. Jul, 2009, at 11:08, Marcel Loose wrote: > > [fixed quoting] > > > On Tue, 2009-07-07 at 10:32 +0200, Michael Wild wrote: > >> On 7. Jul, 2009, at 10:11, Marcel Loose wrote: > >> > >>> Hi all, > >>> > >>> I noticed that FindLAPACK and

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Michael Wild
On 7. Jul, 2009, at 11:08, Marcel Loose wrote: [fixed quoting] On Tue, 2009-07-07 at 10:32 +0200, Michael Wild wrote: On 7. Jul, 2009, at 10:11, Marcel Loose wrote: Hi all, I noticed that FindLAPACK and FindBLAS require that you enable Fortran as language, which causes CMake to check fo

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Marcel Loose
Hi Michael, I'm not surprised that it's quite difficult to make checks for Lapack/Blas work cross-platform and cross-vendor. But the essence of my question was: why do I need a Fortran compiler!? As you wrote in your answer: That's probably because these modules ONLY search for the Fortran inter

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Alin M Elena
Hi Marcel, There are two reasons for that. 1. The way in which FindBlas and Lapack are working. They check that actually you can link against this libs, by writing a small Fortran call program. 2. They are for Fortran use projects. Calling fortran functions from C/C++, in a portable way, is not

Re: [CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Michael Wild
On 7. Jul, 2009, at 10:11, Marcel Loose wrote: Hi all, I noticed that FindLAPACK and FindBLAS require that you enable Fortran as language, which causes CMake to check for a working Fortran compiler. IMHO, you only need the fortran runtime libraries, cause you're only linking against the Lapack

[CMake] Troubles with add_subdirectory

2009-07-07 Thread Pierre-Julien Villoud
Hi everyone I have three projects with their CMakeLists.txt and I would like to create a top CMakeLists.txt. So I do this : cmake_minimum_required(VERSION 2.6) add_subdirectory(Project1) add_subdirectory(Project2) add_subdirectory(Project3) Note that in each CMakeLists.txt of the three project

[CMake] How to FORCE an OPTION?

2009-07-07 Thread Marcel Loose
Hi all, Is there a way to FORCE an OPTION, other than using set(VAR CACHE BOOL "docstring" FORCE) The reason I'm asking is that I'm using two files that preset a number of CMake options. The first contains generic settings; the second, host-specific, may override these generic settings. Sin

Re: [CMake] How To Copy Media Files Into Out-Of-Source Build

2009-07-07 Thread Hendrik Sattler
Zitat von Marcel Loose : I'm a bit unfamiliar with Windows as a development platform. But I thought that Redmond touted "shortcuts" as their version of "symbolic links". Shortcuts exist since Windows 95. You must differ here. Shortcuts are specially interpreted .link files while symbolic and

[CMake] FindLAPACK/FindBLAS require Fortran compiler. Why?

2009-07-07 Thread Marcel Loose
Hi all, I noticed that FindLAPACK and FindBLAS require that you enable Fortran as language, which causes CMake to check for a working Fortran compiler. IMHO, you only need the fortran runtime libraries, cause you're only linking against the Lapack/Blas libraries. Most Linux distro's have separate

Re: [CMake] How To Copy Media Files Into Out-Of-Source Build

2009-07-07 Thread Marcel Loose
Hmm, I'm a bit unfamiliar with Windows as a development platform. But I thought that Redmond touted "shortcuts" as their version of "symbolic links". Shortcuts exist since Windows 95. Best regards, Marcel Loose. On Mon, 2009-07-06 at 17:39 +0200, Michael Wild wrote: > Windows Vista and newer do.

Re: [CMake] How To Copy Media Files Into Out-Of-Source Build

2009-07-07 Thread Michael Wild
Windows Vista and newer do. On older versions create_symlink just does nothing... Michael On 6. Jul, 2009, at 17:37, Karol Krizka wrote: Hi, Thank you both for you suggestions. I think I will go with execute_process and symlinks. Since the files are movies, they are quite big and links a

Re: [CMake] Converting implicit makefile rules

2009-07-07 Thread Marcel Loose
Hi Nick, Tyler, Another option is to pass the names of the lists to the macro (one for the CPP files, one for the XML files), instead of their contents. You would then need a ${${...}} construct to get their values. The (only) downside to that solution is that you cannot pass literal string argu