[CMake] INCLUDE path problem

2009-12-08 Thread 董理
Hi all, I have encountered the following error: "Error in opening the compiled module file. Check INCLUDE paths." There are several files, say them as module1.F90, module2.F90, and library lib. The dependencies among them are: module1 uses lib, and module2 use module1 The building process is o

Re: [CMake] Framework Installation Directory / Framework copying

2009-12-08 Thread Michael Jackson
http://www.cmake.org/Wiki/BundleUtilitiesExample Might Help Mike Jackson On Dec 8, 2009, at 5:11 PM, Glenn Hughes wrote: Hi all, Does anyone have any experience with how to copy a built framework into the application bundle? In Xcode we set the Installation Directory of the Framework to @ex

Re: [CMake] where are the output files?

2009-12-08 Thread Michael Jackson
Some projects have CMake code in the top most CMakeLists.txt file such as the following: # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin) # - Setup the executable output Directory - SET (CMAKE_RUN

[CMake] where are the output files?

2009-12-08 Thread Glenn Hughes
Ok, this is something that I thought was going to be easy, but I really can't figure it out... I've written a python script to smash my private frameworks into my built application, but, I need to know exactly where the frameworks and the app have been built. I know I can control the top-level bina

[CMake] Fwd: A bug for Code::Blocks MinGW?

2009-12-08 Thread John Drescher
On Tue, Dec 8, 2009 at 8:18 PM, Song Zhiwei wrote: > Thanks. Have done. > That is http://public.kitware.com/Bug/view.php?id=10014 for anyone following. -- John M. Drescher ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] A bug for Code::Blocks MinGW?

2009-12-08 Thread Song Zhiwei
Thanks. Have done. 2009/12/9 Alexander Neundorf : > On Saturday 05 December 2009, Song Zhiwei wrote: >> Before the bug fixed, is there any way inside CMake to add " >> around the filename? Use special commands? > > Please put it in the bugtraker at http://public.kitware.com/Bug/ > > Alex > ___

Re: [CMake] A bug for Code::Blocks MinGW?

2009-12-08 Thread Alexander Neundorf
On Saturday 05 December 2009, Song Zhiwei wrote: > Before the bug fixed, is there any way inside CMake to add " > around the filename? Use special commands? Please put it in the bugtraker at http://public.kitware.com/Bug/ Alex ___ Powered by www.kitware

Re: [CMake] FindPerlLibs.cmake bug or I don't understand string regex replace

2009-12-08 Thread Alexander Neundorf
On Monday 07 December 2009, Hugh Sorby wrote: > I have been trying to get FindPerlLibs to work on windows (Vista). It's > taken me a while but I think I have found the problem. As far as I have > been able to identify the string regex replace call returns (what I > think is) an undesirable result

Re: [CMake] local build misses ccmake on IBM cell ppc64

2009-12-08 Thread Gao, Yi
Hi Bill, Finally I made it work seems that by setting the environment vars: CPPFLAGS, CXXFLAGS, LDFLAGS, and LD_LIBRARY_PATH (I haven't made sure which actually do the work and which are redundant, so I just th ), configure will find the ncurses in local dir: /home/gaoyi/usr/local/include/ncur

[CMake] Framework Installation Directory / Framework copying

2009-12-08 Thread Glenn Hughes
Hi all, Does anyone have any experience with how to copy a built framework into the application bundle? In Xcode we set the Installation Directory of the Framework to @executable_path/../Frameworks/, then as a post-link phase of building the app we run a python script to copy the built framework

Re: [CMake] local build misses ccmake on IBM cell ppc64

2009-12-08 Thread Gao, Yi
Hi Bill, Thanks for pointing that out! Following the direction, I downloaded ncurses-5.7.tar.gz I untared it, and in its directory I do: ./configure --prefix=/home/gaoyi/usr/local (since I don't have permission for paths other than my home dir) make make install I can see ncurses is in /home

Re: [CMake] local build misses ccmake on IBM cell ppc64

2009-12-08 Thread Bill Hoffman
Gao, Yi wrote: Hi, I was trying to use a IBM cell machine to run some of my code, first of which I need to set up CMake on it. I downloaded all binary releases on cmake download page, but they don't work. Giving me a "cannot execute binary file" error. This is fine because the system seems to b

[CMake] local build misses ccmake on IBM cell ppc64

2009-12-08 Thread Gao, Yi
Hi, I was trying to use a IBM cell machine to run some of my code, first of which I need to set up CMake on it. I downloaded all binary releases on cmake download page, but they don't work. Giving me a "cannot execute binary file" error. This is fine because the system seems to be not usual. The

[CMake] CMAKE_C_FLAGS reset to empty string

2009-12-08 Thread Ingolf Steinbach
Hi, Why are the CMAKE_C_FLAGS reset to the empty string when calling cmake as shown below? (Using cmake 2.6.4 on Linux). When I later call ccmake in the top-level build directory, the CMAKE_C_FLAGS variable does not contain the value specified in the toolchain file but is instead empty. The specif

Re: [CMake] More than one C Compiler in a Project

2009-12-08 Thread David Cole
You might consider using the new ExternalProject module and the ExternalProject_Add function to build one as a separate stand-alone project. See this article about using ExternalProject in the latest "The Source" newsletter on pp. 14-17: http://kitware.com/products/archive/kitware_quarterly1009.pd

Re: [CMake] [PATCH] Fixed some typos

2009-12-08 Thread Alexander Neundorf
On Wednesday 02 December 2009, Richard Hartmann wrote: > Hi all, > > please see the attached patch. I did _not_ fix typos in changelogs. If > you guys think that is a worthwhile thing to do look for > > explicitely > seperate > superceded If it hasn't been applied yet (didn't check), please

Re: [CMake] Patch to FindFreetype.cmake to avoid NOTFOUND in FREETYPE_LIBRARIES

2009-12-08 Thread Alexander Neundorf
On Monday 07 December 2009, Rothganger, Fredrick wrote: > Greetings, > > Not sure how to address the following to the maintainer of FindFreetype, so > sending it to this list... > > FindFreetype unconditionally sets FREETYPE_LIBRARIES to whatever > FREETYPE_LIBRARY is, even when it is not found. M

Re: [CMake] More than one C Compiler in a Project

2009-12-08 Thread Alexander Neundorf
On Tuesday 08 December 2009, Rüdiger Ranft wrote: > Hi all, > > I need to use two different C compilers in a project, because this > project consists of both PC software and micro controller firmware. Is > there a way to use cmake to generate Makefiles which call different > compilers, (or to hard-

Re: [CMake] Newie's question: Multiple applications with one common kernel

2009-12-08 Thread Tyler Roscoe
On Tue, Dec 08, 2009 at 09:27:42AM +0100, Matthias Moeller wrote: > Thank you for your help. Actually, I need it in the opposite way, that > is, each application (parent) adds the kernel directory. In the kernel's > CMakeLists.txt file a list of source files is generated and this list > should be p

Re: [CMake] Build only what you need in third party libs

2009-12-08 Thread Brian Davis
See below On Mon, Dec 7, 2009 at 1:26 PM, troy d. straszheim wrote: > Michael Jackson wrote: > >> >> >> On Dec 7, 2009, at 1:28 PM, troy d. straszheim wrote: >> >> Michael Jackson wrote: >>> So you are wanting to include the Boost sources in your project and you just want to build a sp

Re: [CMake] Use of mpi compiler / FINDMPI.cmake

2009-12-08 Thread James C. Sutherland
On Dec 8, 2009, at 4:09 AM, Olivier Pierard wrote: > Dear all, > > I'm a little bit confused with the use of findmpi.cmake. Does anyone > has an example of its usage (for compilation, not yet for running) ? > > Since we have two mpi implementations (mpich and openmpi-ib), I set the > compiler

Re: [CMake] InstallRequiredSystemLibraries.cmake and cpack -G NSIS

2009-12-08 Thread Clinton Stimpson
On 12/08/2009 07:07 AM, Mathieu Malaterre wrote: On Tue, Dec 8, 2009 at 3:03 PM, Mathieu Malaterre wrote: Hi there, I am currently experiencing a weird issue. The NSIS installer does not install the M$ redist dll as I would expect InstallRequiredSystemLibraries.cmake should be doing. Th

Re: [CMake] Building CMake on Windows

2009-12-08 Thread David Cole
Steve, let me guess: the group you care about, who can't/won't install binaries or allow binaries in the source tree, is using Visual Studio on Windows... right? :-) On Tue, Dec 8, 2009 at 9:09 AM, Bill Hoffman wrote: > steve naroff wrote: > >> The 'Readme.txt' for the Windows source distributio

Re: [CMake] Building CMake on Windows

2009-12-08 Thread Bill Hoffman
steve naroff wrote: The 'Readme.txt' for the Windows source distribution says: "You need to download and install a binary release of CMake in order to build CMake." Unlike UNIX/Mac, the Windows source can't be bootstrapped... I assume the Readme.txt is accurate? Any plans to change this? No

Re: [CMake] InstallRequiredSystemLibraries.cmake and cpack -G NSIS

2009-12-08 Thread Mathieu Malaterre
On Tue, Dec 8, 2009 at 3:03 PM, Mathieu Malaterre wrote: > Hi there, > >  I am currently experiencing a weird issue. The NSIS installer does > not install the M$ redist dll as I would expect > InstallRequiredSystemLibraries.cmake should be doing. The cpack -G ZIP > is ok, I can see the M$ dll in t

[CMake] InstallRequiredSystemLibraries.cmake and cpack -G NSIS

2009-12-08 Thread Mathieu Malaterre
Hi there, I am currently experiencing a weird issue. The NSIS installer does not install the M$ redist dll as I would expect InstallRequiredSystemLibraries.cmake should be doing. The cpack -G ZIP is ok, I can see the M$ dll in the /bin directory. But for some reason the NSIS does not seems to in

Re: [CMake] Building CMake on Windows

2009-12-08 Thread Michael Jackson
If you have cmake installed, you can bootstrap newer versions of CMake on Windows. -1 for not being helpful. +1 for General information. ;-) Mike Jackson On Dec 8, 2009, at 7:34 AM, Pau Garcia i Quiles wrote: On Tue, Dec 8, 2009 at 12:58 PM, steve naroff wrote: The 'Readme.txt' for t

[CMake] More than one C Compiler in a Project

2009-12-08 Thread Rüdiger Ranft
Hi all, I need to use two different C compilers in a project, because this project consists of both PC software and micro controller firmware. Is there a way to use cmake to generate Makefiles which call different compilers, (or to hard-code a second one, since the PC software can be developed wit

Re: [CMake] Building CMake on Windows

2009-12-08 Thread Pau Garcia i Quiles
On Tue, Dec 8, 2009 at 12:58 PM, steve naroff wrote: > The 'Readme.txt' for the Windows source distribution says: > > "You need to download and install a binary release of CMake in order to > build CMake." > > Unlike UNIX/Mac, the Windows source can't be bootstrapped... > > I assume the Readme.txt

[CMake] Building CMake on Windows

2009-12-08 Thread steve naroff
The 'Readme.txt' for the Windows source distribution says: "You need to download and install a binary release of CMake in order to build CMake." Unlike UNIX/Mac, the Windows source can't be bootstrapped... I assume the Readme.txt is accurate? Any plans to change this? Thanks, snaroff

[CMake] Use of mpi compiler / FINDMPI.cmake

2009-12-08 Thread Olivier Pierard
Dear all, I'm a little bit confused with the use of findmpi.cmake. Does anyone has an example of its usage (for compilation, not yet for running) ? Since we have two mpi implementations (mpich and openmpi-ib), I set the compiler as indicated in the preamble of the module and the library to not f

Re: [CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Hendrik Sattler
Zitat von Matthias Moeller : I try to write a cmake file for some external library (from the sparse suite). In the provided makefile a single source file is compiled twice with different compiler flags, e.g., $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o $(C) -DDLONG -c ../Source/amd_aat.c

Re: [CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Eric Noulard
2009/12/8 Matthias Moeller : > I try to write a cmake file for some external library (from the sparse > suite). > In the provided makefile a single source file is compiled twice with > different compiler flags, e.g., > > $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o > $(C) -DDLONG -c ../Source/

Re: [CMake] cmake HEAD: cpack rpm generator seems broken on openSuse 11.2

2009-12-08 Thread Eric Noulard
2009/12/8 : > Dear Eric, > > Sorry for the late response, I missed your last email. No problem. > > I tested CMake CVS HEAD as of today on OpenSuse 11.2 and building an rpm with > CPack now works without patches. Ok now I guess the current state of CPackRPM in CVS HEAD is a good candidate for

[CMake] Compile same source file with different flags into the same library

2009-12-08 Thread Matthias Moeller
I try to write a cmake file for some external library (from the sparse suite). In the provided makefile a single source file is compiled twice with different compiler flags, e.g., $(C) -DDINT -c ../Source/amd_aat.c -o amd_i_aat.o $(C) -DDLONG -c ../Source/amd_aat.c -o amd_l_aat.o and finally all

[CMake] CMake & Java (+ Ocaml)

2009-12-08 Thread Keyan
Hi, i just managed to include java source in my c++ project via cmake by following an example from the web: http://www.airport1.de/blog/archives/456-cMake-and-Java-it-works!-How-to-build-Java-Projects-with-cMake.html it works nicely, with one small problem. using the ADD_CUSTOM_COMMAND option o

Re: [CMake] Newie's question: Multiple applications with one common kernel

2009-12-08 Thread Michael Hufer
Hi, This looks to me as if the "kernel" is a good candidate for a (internal) static (or even shared) library that is used by the "applications" Micha. On Monday 07 December 2009 18:25:42 Tyler Roscoe wrote: > On Mon, Dec 07, 2009 at 05:53:37PM +0100, Matthias Moeller wrote: > > Our proje

Re: [CMake] Newie's question: Multiple applications with one common kernel

2009-12-08 Thread Michael Wild
On 8. Dec, 2009, at 9:27 , Matthias Moeller wrote: Tyler Roscoe wrote: On Mon, Dec 07, 2009 at 05:53:37PM +0100, Matthias Moeller wrote: Our project has the following structure: root/applications (Applications by different users) applications/app1 applications/app2 applications/

Re: [CMake] Newie's question: Multiple applications with one common kernel

2009-12-08 Thread Matthias Moeller
Tyler Roscoe wrote: > On Mon, Dec 07, 2009 at 05:53:37PM +0100, Matthias Moeller wrote: > >> Our project has the following structure: >> >> root/applications (Applications by different users) >> applications/app1 >> applications/app2 >> applications/... >> >> root/kernel (common k