Re: [CMake] Listing generated source files in cmake project

2015-02-25 Thread Nicolás Adamić
On 02/25/2015 12:50 AM, Dmytro Poplavskiy wrote: I have some source files generated as a part of build process, generated using add_custom_command(). Building works fine, but would be nice to have generated source files to be displayed in IDE project (QtCreator using CodeBlocks generator). I'd

Re: [CMake] external project add, clone without history

2015-02-25 Thread Miklos Espak
That's great, I will try that. Thanks very much, Miklos On 25 February 2015 at 23:32, J. Caleb Wherry wrote: > Miklos, > > I did a quick test and using the DOWNLOAD_COMMAND option to > ExternalProject_Add works nicely: > > ExternalProject_Add(sfml > PREFIX ${sfml_PREFIX} > DOWNLOAD_COMMAND

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
Actually, scratch my last comment and submodules. There looks to be a GIT_SUBMODULES option that says if not given, all submodules will be updated. I am assuming that means the CMake passes in the --recursive option automatically when cloning. Haven't tested it yet though... -Caleb On Wed, Feb 25

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
Miklos, I did a quick test and using the DOWNLOAD_COMMAND option to ExternalProject_Add works nicely: ExternalProject_Add(sfml PREFIX ${sfml_PREFIX} DOWNLOAD_COMMAND git clone --depth 1 https://github.com/LaurentGomila/SFML.git INSTALL_DIR ${sfml_INSTALL_DIR} CMAKE_ARGS ${sfml_CMAKE_ARGS}

Re: [CMake] load_command not scriptable

2015-02-25 Thread Tobias Becker
Thanks for the Answer! I actually do not want to alter CMake in any way (and I don't want to create a custom cmake executable) if possible. load_command would have been perfekt. I am losing alot of performance in my map_set() map_get() etc functions which translate down to set_property(GLOBAL...)

Re: [CMake] can I make an AUTOMOC generated file depend on something ?

2015-02-25 Thread Stephen Kelly
Kim Rydhof Thor Hansen wrote: > http://www.cmake.org/cmake/help/v3.0/prop_tgt/AUTOGEN_TARGET_DEPENDS.html > > I have a similar problem because automoc doesn't pick up that my > metadata.json file is a dependency to the generated moc_plugin.cpp > when building a Qt plugin Thanks for the testcase.

Re: [CMake] fortran modules and parallel builds

2015-02-25 Thread Brad King
On 02/25/2015 01:58 PM, Zaak Beekman wrote: > When multiple executables or libraries depend on the same > fortran source file that contains a module, parallel (Makefile) > builds are failing for me because the .mod file is getting > moved/renamed/written by more than one process at a time. Is > the

[CMake] fortran modules and parallel builds

2015-02-25 Thread Zaak Beekman
When multiple executables or libraries depend on the same fortran source file that contains a module, parallel (Makefile) builds are failing for me because the .mod file is getting moved/renamed/written by more than one process at a time. Is there a way to have the same module containing sourcefile

Re: [CMake] [cmake-developers] [ANNOUNCE] CMake 3.2.0-rc2 now ready for testing!

2015-02-25 Thread Roman Wüger
Thank you very much > Am 25.02.2015 um 15:12 schrieb Robert Maynard : > > Hi Roman, > > We do attach the short-log of all changes made between each RC version > to the bottom of the annoucement. But here are the changes plus the > git SHA1's for each ( produced with git log --no-merges --oneli

[CMake] external project add, clone without history

2015-02-25 Thread Miklos Espak
Hi, is it possible to specify the --depth 1 argument in ExternalProject_Add for cloning projects from git? Cheers, Miklos -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the

Re: [CMake] [cmake-developers] [ANNOUNCE] CMake 3.2.0-rc2 now ready for testing!

2015-02-25 Thread Robert Maynard
Hi Roman, We do attach the short-log of all changes made between each RC version to the bottom of the annoucement. But here are the changes plus the git SHA1's for each ( produced with git log --no-merges --oneline v3.2.0-rc1..v3.2.0-rc2) 99575c9 CMake 3.2.0-rc2 b4005a3 FindCurses: Drop unused c

Re: [CMake] [cmake-developers] [ANNOUNCE] CMake 3.2.0-rc2 now ready for testing!

2015-02-25 Thread Roman Wüger
Hello Robert, is there a list which showing the changes between rc1 and rc2, to test such things explicitly? Regards Roman > Am 24.02.2015 um 16:01 schrieb Robert Maynard : > > I am proud to announce the CMake 3.2 second release candidate. > > Sources and binaries are available at: > http:

Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Petr Kmoch
You're not giving the DLL micro_linMatl_l any source files, so there's nothing to build. You need to list at least one source file in the add_library() call. You mentioned a main subroutine in your first e-mail; the file containing the main subroutine should be listed in the add_library(SHARED) cal

Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Doron Klepach
Hello Petr, Thank you for the quick reply. At this point I am not getting any errors, but nothing happens when I build the sln in Visual Studio -> no dll is created. Here is the main CMake code: cmake_minimum_required (VERSION 3.1) project (micro_linMatl_I) enable_language (Fortran) # The versio

Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Petr Kmoch
Hi Doron, it would be helpful if you provided the error you're getting from add_library(), and also showed the exact CMake code you used. Petr On Wed, Feb 25, 2015 at 1:57 PM, Doron Klepach wrote: > Hello there, > > I am new to CMake and I am trying to convert a project to work with CMake. > >

[CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Doron Klepach
Hello there, I am new to CMake and I am trying to convert a project to work with CMake. As a part of the process I need to create a DLL from a FORTRAN code. Here are some details: *The code works on Visual Studio and creates the DLL as required. *The main subroutine looks like this: subroutine

Re: [CMake] Problems with combo CMake/MSVC2013/Qt5

2015-02-25 Thread Jakob van Bethlehem
Hello, Thanks for the quick reply! On Tue, Feb 24, 2015 at 7:54 PM, Stephen Kelly wrote: > Jakob van Bethlehem wrote: > > > Dear users, > > > set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.4.0/5.4/msvc2013_64_opengl/lib/cmake") > > Don't do this. Pass CMAKE_PREFIX_PATH as an argument to cmake. > Good poin

Re: [CMake] load_command not scriptable

2015-02-25 Thread David Cole via CMake
You could patch the executable to make cmLoadCommandCommand return true from IsScriptable... but if you're going to the trouble of patching CMake anyhow, why not simply build your loadable command directly into CMake...? The other thing might be to mention specifically what the performance problem

[CMake] load_command not scriptable

2015-02-25 Thread Tobias Becker
Hi I've been working on an open source project which provides alot of extra cmake (in pure cmake) https://github.com/toeb/cmakepp. I am however hitting a performance bottleneck and want to get around that by using load_command (I know it is discouraged) however I have the problem that it is not

Re: [CMake] Setting build type

2015-02-25 Thread J Decker
mkdir build-d cd build-d cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=out ../your/source/procject cmake --build . cd .. mkdir build-r cd build-r cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out ../your/source/procject cmake --build . --target install cd .. On Wed, Feb 25, 201

Re: [CMake] Setting build type

2015-02-25 Thread Adam Getchell
Thanks for your reply. I'm not sure I follow your answer. I do delete the directory each time I build, but I'm still not understanding how you're building release or debug versions to begin with. I'm just automatically getting Release, unless I edit CMakeCache.txt after I've built once. I just c

[CMake] xcodeproj cannot be opened because the project file cannot be parsed

2015-02-25 Thread Biddiscombe, John A.
When generating Xcode projects on OSX, for larger projects I get this error when I attempt to open them (smaller/simpler ones seem to be ok). In one particular example the Xcode generated project is approx 14MB in size. Does anyone know of any tools to diagnose what is wrong with the generated

[CMake] CMake Version Compatibility Matrix

2015-02-25 Thread Marcel Loose
Hi all, Is there any chance that the version compatibility matrix will be updated for cmake 3.x features? Best regards, Marcel Loose. <>-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services