Re: [CMake] Cross compilation and native executables

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 21:28 , Guillaume Duhamel wrote: > Hi, > > I'm one of the Yabause ( http://yabause.org ) developers and we're currently > porting our build system from Autotools to CMake. We made it to the point > were basic stuff is working and we now want to get cross compilation working

[CMake] CMAKE_RC_FLAGS

2010-01-26 Thread James Bigler
Do the CMAKE_RC_FLAGS do anything? I've tried these methods to pass this flag to the rc.exe compiler without success: set(CMAKE_RC_FLAGS "-DMY_VERSION" CACHE STRING "Flags for RC compiler" FORCE) set(CMAKE_RC_FLAGS "/DMY_VERSION" CACHE STRING "Flags for RC compiler" FORCE) set(CMAKE_RC_FLAGS "/D

Re: [CMake] CUDA, CMAKE, and an attempt to build nbody

2010-01-26 Thread James Bigler
First off, you can't set nvcc flags via the SET_PROPERTIES function, nor should you set host compiled code properties here either, because these properties will only work for the CXX code added to the project and not the host compiled code nvcc generates. If you want to do what you want you need t

Re: [CMake] how to define the output location of QT4_WRAP_UI?

2010-01-26 Thread Arnaud GELAS
Hi, QT4_WRAP_UI generates ui_*h files in the binary folder. You only need to add this folder to the list of includes and that's it. If I am not wrong, it should be something like INCLUDE_DIRECTORIES( ${Quad_BINARY_DIR} ) Arnaud On 01/26/2010 05:39 PM, e...@cs.bgu.ac.il wrote: hello. I've ra

Re: [CMake] how to define the output location of QT4_WRAP_UI?

2010-01-26 Thread John Drescher
On Tue, Jan 26, 2010 at 5:39 PM, e...@cs.bgu.ac.il wrote: > > hello. > I've ran into a slight problem, I have a program that uses qt4 gui, I've > created classes with ui, my cmakelist.txts looks like this: > > cmake_minimum_required(VERSION 2.6) > PROJECT(Quad) > > SET(CMAKE_VERBOSE_MAKEFILE ON)

[CMake] how to define the output location of QT4_WRAP_UI?

2010-01-26 Thread e...@cs.bgu.ac.il
hello. I've ran into a slight problem, I have a program that uses qt4 gui, I've created classes with ui, my cmakelist.txts looks like this: cmake_minimum_required(VERSION 2.6) PROJECT(Quad) SET(CMAKE_VERBOSE_MAKEFILE ON) SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build) SET(LIBRARY_OUTPUT_P

Re: [CMake] ANN: UseOcaml.cmake

2010-01-26 Thread Judicaël Bedouet
Thanks for your help. It is solved. A dependency between custom targets was missing. In fact, the dependency was just between the custom command outputs and I didn't think that setting a dependency between custom targets would have solved the problem. I also have had to generate objects in separat

Re: [CMake] CUDA, CMAKE, and an attempt to build nbody

2010-01-26 Thread Brian Davis
The -m64 seems to be a buried unaccessable option due to nvcc_flags variable within cmake-2.8.0-win32-x86/share/cmake-2.8/Modules/FindCUDA.cmake which generates my nbody_generated_bodysystemcuda.cu.obj.cmake file. If I try the wack-a-mole approach: SET( nvcc_flags "" CACHE STRING "" FORCE ) a w

[CMake] Cross compilation and native executables

2010-01-26 Thread Guillaume Duhamel
Hi, I'm one of the Yabause ( http://yabause.org ) developers and we're currently porting our build system from Autotools to CMake. We made it to the point were basic stuff is working and we now want to get cross compilation working too. One of Yabause compilation step require to generate and run

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread John Drescher
> Thanks for the information!  It's unfortunate, but there's nothing to be > done about it. > You can freely download an 180 day trial. http://www.microsoft.com/visualstudio/en-us/try/default.mspx John ___ Powered by www.kitware.com Visit other Kitwar

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread James Bigler
Thanks for the information! It's unfortunate, but there's nothing to be done about it. James On Tue, Jan 26, 2010 at 12:41 PM, David Cole wrote: > Stack Overflow: > > http://stackoverflow.com/questions/86562/what-is-missing-in-the-visual-studio-express-editions > > Wikipedia: > http://en.wikip

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread David Cole
Stack Overflow: http://stackoverflow.com/questions/86562/what-is-missing-in-the-visual-studio-express-editions Wikipedia: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express ...and my own personal experience of launching VS Express and looking at it... ...all agree! VS Macros are defin

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread James Bigler
I did mean the macro. Thanks for checking up on it. On Tue, Jan 26, 2010 at 11:48 AM, David Cole wrote: > What CMake plugin? > > If you mean the macros that run to stop the build and reload the project > files I do not know if those work with the express editions of Visual > Studio or not.

Re: [CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread David Cole
What CMake plugin? If you mean the macros that run to stop the build and reload the project files I do not know if those work with the express editions of Visual Studio or not. I will look it up, though and get back to you. On Tue, Jan 26, 2010 at 12:56 PM, James Bigler wrote: > I have a us

[CMake] Quick question: Does the CMake plugin work in VC Express?

2010-01-26 Thread James Bigler
I have a user that is asking this question, but I don't have access to a copy of VC Express. They also thought that Express didn't support plugins. James ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Brad King
Yegor Yefremov wrote: > O.K. Here are some lines of my CMakeLists.txt: > > set (CMAKE_C_COMPILER arm-linux-gcc) > set (CMAKE_STRIP arm-linux-strip) > message (STATUS "ABI ${CMAKE_C_COMPILER_ABI}") > > After running cmake I see only ABI as output and CMakeCache.txt doesn't > contain CMAKE_C_COM

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Brad King wrote: > Yegor Yefremov wrote: >> Alexander Neundorf wrote: >>> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to >>> either "ELF ARM" or "ELF ARMEABI". >> Do I see it right, that this variable is relevant when building CMake itself? > > No, it is set in each project t

Re: [CMake] Subversion_WC_INFO macro should not do SEND_ERROR

2010-01-26 Thread Ryan Pavlik
On 1/26/10 10:33 AM, Tyler Roscoe wrote: On Tue, Jan 26, 2010 at 10:23:03AM +0100, Marcel Loose wrote: Is that portable? I don't do development on Windows, but I vaguely remember that on Windows the ".svn" directories had a different name, because Windows doesn't really like file- and direct

Re: [CMake] [vtkusers] Windows: Correctly linking the debug and release libraries in a CMake-based project

2010-01-26 Thread John Drescher
>> When you build VTK using CMake the .lib .dll may have the same name >> but they are in different folders. CMake understands this and will >> properly link your application with the correct .lib. This happens if >> you do build both debug and release vtk. >> >> John > > I think he is talking abou

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Brad King
Yegor Yefremov wrote: > Alexander Neundorf wrote: >> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to >> either "ELF ARM" or "ELF ARMEABI". > > Do I see it right, that this variable is relevant when building CMake itself? No, it is set in each project that gets built. The rea

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Alexander Neundorf wrote: > please apply the attached patch to Modules/CMakeCompilerABI.h (current CVS, > but 2.8.0 should work too). Thank you for the patch. I applied it to the 2.8.0. > You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to > either "ELF ARM" or "ELF ARMEABI". D

Re: [CMake] Subversion_WC_INFO macro should not do SEND_ERROR

2010-01-26 Thread Tyler Roscoe
On Tue, Jan 26, 2010 at 10:23:03AM +0100, Marcel Loose wrote: > Is that portable? I don't do development on Windows, but I vaguely > remember that on Windows the ".svn" directories had a different name, > because Windows doesn't really like file- and directory names that start > with a dot. Window

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, that was better. Installed gfortran now under MinGW (from TDM) and removed the Fortran-specific files from PLplot, so that it should recognise gfortran out-of-the-box. This does not work, but it is a gfortran/gcc problem. I will need to look into that. Regards, Arjen On 2010-01-26

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, ah, had to work from memory - normally I rely on my hard disk's memory :). Will try again. Regards, Arjen On 2010-01-26 15:36, Brad King wrote: Arjen Markus wrote: this did not work! I checked out PLplot a-fresh, checked that there are NO CMakeCache.txt files anywhere in the source

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Brad King
Arjen Markus wrote: > this did not work! I checked out PLplot a-fresh, checked that there > are NO CMakeCache.txt files anywhere in the source tree, used a > fresh DOS-box to start the batch file in a directory separate from > the source directory and tried again. > > The result: a CMakeFiles subd

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, this did not work! I checked out PLplot a-fresh, checked that there are NO CMakeCache.txt files anywhere in the source tree, used a fresh DOS-box to start the batch file in a directory separate from the source directory and tried again. The result: a CMakeFiles subdirectory in the sourc

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Brad King
Arjen Markus wrote: > I did it this way just now too, but I found out that the intermediate > files are stored in the directory containing the CMakeLists.txt file! Somehow a CMakeCache.txt file must have ended up in your source tree. Once an in-source build is done it is impossible to do out-of-so

Re: [CMake] Out of source dependencies.

2010-01-26 Thread Schwartz, Philip
I have come up with a partial solution to this issue by putting the add_subdirectory into a macro that is called to do the add along with the add_depend. It looks for a variable of ${CMAKE_PROJECT_NAME}_BUILT in order to determine if it should add_subdirectory or just add_depend. The issue now

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, On 2010-01-26 14:37, Brad King wrote: Arjen Markus wrote: I tried to do this, using the Compaq Visual Fortran compiler as a test case, as I can do that rightaway, but I ran into some trouble: Okay, I didn't expect this one to work yet. The MinGW and Cygwin versions of gfortran shoul

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Brad King
Arjen Markus wrote: > I tried to do this, using the Compaq Visual Fortran compiler as a test > case, as I can do that rightaway, but I ran into some trouble: Okay, I didn't expect this one to work yet. The MinGW and Cygwin versions of gfortran should work though. Please confirm this when you get

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, I tried to do this, using the Compaq Visual Fortran compiler as a test case, as I can do that rightaway, but I ran into some trouble: - I removed the files referring to that compiler from my version of the PLplot repository - CMake complained at first about f90 - the -o option is ambig

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
No, you don't need install scripts for that! The documentation of find_package says, that CMake searches for Config.cmake files in: / (W) /(cmake|CMake)/ (W) /*/

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, On 2010-01-25 23:27, Brad King wrote: Arjen, please try out each compiler of interest with CMake 2.8.0 and with CMake from CVS HEAD. Remove all plplot language module files to see how much works out of the box. I will try this out as soon as possible. Regards, Arjen _

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Mika . Rajala
Hi Thanks a lot for the help. Sorry that I didn't provide all necessary information at start, I just didn't understand the matter enought to write it all. You guessed right, I want to find out the folder of the host, so that the cmake running on the host machine may find it. I'd like that the use

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 10:17 , Eric Noulard wrote: > 2010/1/26 Michael Wild : >>> >>> Michael is right and I should have tell you that too, >>> May be installing your FindXXX.cmake is not the good way to go at all. >>> >>> see reference on Config.cmake there >>> http://www.cmake.org/pipermail

Re: [CMake] Subversion_WC_INFO macro should not do SEND_ERROR

2010-01-26 Thread Marcel Loose
On Mon, 2010-01-25 at 10:06 -0500, David Cole wrote: > On Mon, Jan 25, 2010 at 7:37 AM, Marcel Loose wrote: > Hi all, > > IMHO the macro Subversion_WC_INFO in FindSubversion.cmake > should not do > a SEND_ERROR, when the 'svn info' command fails. This makes

[CMake] Patch for FindSubversion: fixes documentation and sets missing variable

2010-01-26 Thread Marcel Loose
Hi all, Here's a small patch that fixes two errors in the current FindSubversion.cmake file. 1) The variable _WC_ROOT was documented, but not set. This has been fixed. 2) The documentation doesn't mention the existence of a second macro Subversion_WC_LOG, and erroneously mentions that Subversion

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Eric Noulard
2010/1/26 Michael Wild : >> >> Michael is right and I should have tell you that too, >> May be installing your FindXXX.cmake is not the good way to go at all. >> >> see reference on Config.cmake there >> http://www.cmake.org/pipermail/cmake/2010-January/034778.html > > It is not necessarily wro

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 9:59 , Eric Noulard wrote: > 2010/1/26 Michael Wild : >> >> On 26. Jan, 2010, at 9:02 , mika.raj...@patria.fi wrote: >> >>> >>> Hi >>> >>> How can i tell the NSIS installer, using cmake, to install my Find*.cmake >>> script to the ${CMAKE_ROOT}/Modules directory? >>> >>>

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Eric Noulard
2010/1/26 Michael Wild : > > On 26. Jan, 2010, at 9:02 , mika.raj...@patria.fi wrote: > >> >> Hi >> >> How can i tell the NSIS installer, using cmake, to install my Find*.cmake >> script to the ${CMAKE_ROOT}/Modules directory? >> >> Writing that to the "install" command doesn't work. >> >> I did tr

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 9:02 , mika.raj...@patria.fi wrote: > > Hi > > How can i tell the NSIS installer, using cmake, to install my Find*.cmake > script to the ${CMAKE_ROOT}/Modules directory? > > Writing that to the "install" command doesn't work. > > I did try googling for anwsers for the bet

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Eric Noulard
2010/1/26 : > > Hi > > How can i tell the NSIS installer, using cmake, to install my Find*.cmake > script to the ${CMAKE_ROOT}/Modules directory? > > Writing that to the "install" command doesn't work. You do not give us enough information about WHAT exactly did not work, example of CMakeLists.tx

[CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Mika . Rajala
Hi How can i tell the NSIS installer, using cmake, to install my Find*.cmake script to the ${CMAKE_ROOT}/Modules directory? Writing that to the "install" command doesn't work. I did try googling for anwsers for the better part of yesterday so if it can be found on the internet, please provide s