Re: [CMake] Suggestions needed for handling Fedora UsrMove

2013-03-13 Thread Stephen Kelly
Orion Poplawski wrote: > In current Fedora, /sbin,/bin, and /lib are symbolic links to /usr/sbin, > /usr/bin, and /usr/lib. This causes problems such as the one outlined > here: https://bugzilla.redhat.com/show_bug.cgi?id=917407 > where find_package(PKG NO_MODULE) will find PKGConfig.cmake in /li

Re: [CMake] CMake+Eclipse: how to get header files with non-standard suffix into the headers folders?

2013-03-13 Thread Magnus Therning
On Mon, Mar 11, 2013 at 8:49 PM, Alexander Neundorf wrote: > On Monday 11 March 2013, Magnus Therning wrote: >> In the project I work on we have tools that generate quite a few >> header files, but they are all generated with names matching *.inc. >> I've added them all to the list of sources for

Re: [CMake] Link something to future installed library

2013-03-13 Thread Martin Koller
On Tuesday 12 March 2013 20:53:21 David Demelier wrote: > Thanks for your answer, however target_link_libraries() my modules to the > target of core will link to the build binary directory as expected : > > markand@Melon .../src/magicstat-2/_build_ $ ldd modules/battery/battery.so > modules/batt

Re: [CMake] Problem with generated source files and Fortran90 modules

2013-03-13 Thread Julien Bigot
Hi, On Tuesday 12 March 2013 7:37 AM Petr Kmoch wrote: > Hi Julien, > > CMake correctly identifies that gen.90f depends on gen.f90.sh, but you > have no code to tell CMake that usegen.f90 depends on gen.f90. The > following should do the trick: > > set_property(SOURCE usegen.f90 PROPERTY OBJECT_DE

Re: [CMake] Problem with generated source files and Fortran90 modules

2013-03-13 Thread Brad King
On 03/11/2013 06:41 AM, Julien Bigot wrote: > add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/gen.f90" > COMMAND bash ARGS "${CMAKE_SOURCE_DIR}/gen.f90.sh" ">" > "${CMAKE_BINARY_DIR}/gen.f90" > MAIN_DEPENDENCY "${CMAKE_SOURCE_DIR}/gen.f90.sh" > VERBATIM > ) > add_library(mylib STA

[CMake] how to get install/strip target ?

2013-03-13 Thread Martin Koller
cmake 2.8.10, Linux: What do I need to do to have cmake creating a make install/strip target ? -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control Gmb

[CMake] Problem with backslash in path

2013-03-13 Thread Ken Fast
I am using CMake to build LAPACK on a Windows (x64) machine with msys make, MinGW x64 FORTRAN compiler, and Visual Studio C/C++ compilers. When CMake tries to test the FORTRAN compiler it fails with the following message: Check for working Fortran compiler: D:/Tools/MinGW/x86_64-w64-mingw32/b

[CMake] change source which does not trigger rebuild ?

2013-03-13 Thread Martin Koller
I'd like to solve the following problem, but have not found a way how to yet: Our source is rebuilt every night, but only if some sources changed (e.g. the build tree is not removed, only the source tree is updated from CVS). What I want is to include the build date/time in a versionInfo.cxx sour

Re: [CMake] Problem with generated source files and Fortran90 modules

2013-03-13 Thread Julien Bigot
On Wednesday 13 March 2013 8:27 AM Brad King wrote: > On 03/11/2013 06:41 AM, Julien Bigot wrote: > > add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/gen.f90" > > > > COMMAND bash ARGS "${CMAKE_SOURCE_DIR}/gen.f90.sh" ">" > > > > "${CMAKE_BINARY_DIR}/gen.f90" > > > > MAIN_DEPENDENCY "${CMAKE

Re: [CMake] Problem with generated source files and Fortran90 modules

2013-03-13 Thread Julien Bigot
On Wednesday 13 March 2013 2:11 PM Julien Bigot wrote: > On Wednesday 13 March 2013 8:27 AM Brad King wrote: > > On 03/11/2013 06:41 AM, Julien Bigot wrote: > > > add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/gen.f90" > > > > > > COMMAND bash ARGS "${CMAKE_SOURCE_DIR}/gen.f90.sh" ">" > > > > > >

Re: [CMake] Problem with generated source files and Fortran90 modules

2013-03-13 Thread Brad King
On 03/13/2013 09:33 AM, Julien Bigot wrote: > This might also be related to the fact that all uses of the module are > included inside #ifdef MYMACRO ... #endif where MYMACRO is defined with > set_property(SOURCE usegen.f90 APPEND PROPERTY > COMPILE_DEFINITIONS_DEBUG MYMACRO) Yes, I think that i

Re: [CMake] How to link static and shared libraries at the same time?

2013-03-13 Thread Matthew Woehlke
On 2013-03-10 07:43, Ulrich Heinicke wrote: I have a shared library in which i need must link some libraries. Five of these libraries should be link as shared libraries, but one must be linked as static library. How can i do this? Do you mean that there are static and shared versions of all the

Re: [CMake] How to link static and shared libraries at the same time?

2013-03-13 Thread Ulrich Heinicke
Am 13.03.2013 17:49, schrieb Matthew Woehlke: > > > On 2013-03-10 07:43, Ulrich Heinicke wrote: >> I have a shared library in which i need must link some libraries. Five >> of these libraries should be link as shared libraries, but one must be >> linked as static library. How can i do this? > > Do

[CMake] 3 Tests failure on CMake 2.8.9 run on windows 7 VS2008 32 bit

2013-03-13 Thread Alexandre Fournier
Hello, I am running the entire test suite coming with the CMake code source and I have the 3 following failure: - ExternalProject - MFC - BundleUtilities Is there any special configuration to make those tests a success? Below my setup: - Windows 7 64 b

Re: [CMake] 3 Tests failure on CMake 2.8.9 run on windows 7 VS2008 32 bit

2013-03-13 Thread Bill Hoffman
On 3/13/2013 2:00 PM, Alexandre Fournier wrote: I am running the entire test suite coming with the CMake code source and I have the 3 following failure: -ExternalProject -MFC -BundleUtilities Can you submit an Experimental dashboard? If so, run this in your build tree: ctest -D Experimental

[CMake] Eclipse/CMake build configurations

2013-03-13 Thread Roland Schulz
Hi, why does the Eclipse project generated by cmake not have any cdt build configurations? I.e. it is missing the "C/C++ Build" tab in the project properties. I'm asking because if it had build configurations that might make it possible to do the following: - Create a project in eclipse - Create

[CMake] how to add jar that depends on other built jar?

2013-03-13 Thread Matthew Woehlke
I have a project that builds a bunch of jar's with add_jar from UseJava.cmake. Let's say we have myjar1 and myjar2. How do I write the build rules for myjar2 such that it depends on myjar1? It looks like add_jar is intended to accept names of jar's as source arguments, but this doesn't work (t

Re: [CMake] how to get install/strip target ?

2013-03-13 Thread Alexander Neundorf
On Wednesday 13 March 2013, Martin Koller wrote: > cmake 2.8.10, Linux: > > What do I need to do to have cmake creating a make install/strip target ? I guess you do have an install target ? AFAIK install/strip should be always there automatically. It works for me here. Can you post an example pr

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-13 Thread Alexander Neundorf
Hi Laszlo, On Tuesday 12 March 2013, Laszlo Papp wrote: > Oh, there is a "CMAKE_CXX_LINK_EXECUTABLE". That variable I did not know. > It is nice to see that one does not need to force the compiler. That would > be a bit nasty. :-) > > This feature seems to come along with the 2.8.11 release which

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-13 Thread Alexander Neundorf
Hi, it would be great if you could give the branch TI_DSP_to_TI on cmake stage ( http://cmake.org/gitweb?p=stage/cmake.git ) a try. It renames TI_DSP to TI, and searches for ar6x and strip6x. Thanks Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitw

Re: [CMake] how to get install/strip target ?

2013-03-13 Thread Martin Koller
On Wednesday 13 March 2013 22:43:01 Alexander Neundorf wrote: > On Wednesday 13 March 2013, Martin Koller wrote: > > cmake 2.8.10, Linux: > > > > What do I need to do to have cmake creating a make install/strip target ? > > I guess you do have an install target ? yes. > AFAIK install/strip shou

Re: [CMake] how to add jar that depends on other built jar?

2013-03-13 Thread Matthew Woehlke
On 2013-03-13 17:09, Matthew Woehlke wrote: I have a project that builds a bunch of jar's with add_jar from UseJava.cmake. Let's say we have myjar1 and myjar2. How do I write the build rules for myjar2 such that it depends on myjar1? It looks like add_jar is intended to accept names of jar's as

[CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
I used the following code in 2.8.4, but in 2.8.9 and 2.8.10 it doesn't add the CUDA_CUDART_LIBRARY library to the eventual link line. I see my target linking against the parallelprim library but not the cudart library. Did something change in the interface between 2.8.4 and now? I'll continue to

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
I determined that this failed starting in 2.8.7 (2.8.6 has the cudart library on the link line, and 2.8.7 didn't). I didn't see anything particular about changes to the IMPORT libraries to suggest why this might have happened. I'll try and rig up a reproducer. I did notice that there wasn't a te

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
I made a reproducer and discovered a couple of interesting things. If the dependent library is static then IMPORATED_LINK_DEPENDENT_LIBRARIES doesn't work for 2.8.4+. If I instead change it to IMPORTED_LINK_INTERFACE_LIBRARIES then it works correctly regardless of if the dependent library is stat

Re: [CMake] Toolchain file: Texas Instrument C6000 Code Generation Tools

2013-03-13 Thread Laszlo Papp
On Wed, Mar 13, 2013 at 10:14 PM, Alexander Neundorf < a.neundorf-w...@gmx.net> wrote: > Hi, > > it would be great if you could give the branch TI_DSP_to_TI on cmake stage > ( > http://cmake.org/gitweb?p=stage/cmake.git ) a try. > It renames TI_DSP to TI, and searches for ar6x and strip6x. > The