Re: [CMake] CMake in Vim

2013-09-30 Thread Jacky Alciné
On Sat September 28 2013 9.50.30 PM Magnus Therning wrote: > On Thu, Sep 26, 2013 at 04:39:06PM -0400, Jacky Alciné wrote: > > Hey all, > > > > I've been working on a Vim plug-in for Cmake. It provides a bit of > > support but it's on the rise and I'd love to hear from the Vim + > > Cmake users a

Re: [CMake] CMake in Vim

2013-09-30 Thread Jacky Alciné
On Sat September 28 2013 8.15.05 PM Clifford Yapp wrote: > On Thu, Sep 26, 2013 at 4:39 PM, Jacky Alciné wrote: > > Hey all, > > > > I’ve been working on a Vim plug-in for Cmake. It provides a bit of support > > but it’s on the rise and I’d love to hear from the Vim + Cmake users > > about it. >

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Alexander Neundorf
On Monday 30 September 2013, Jakub Schmidtke wrote: > The workaround I found so far is to add a custom target that depends on the > targets I want to build. > So if I add this: > add_custom_target(test12 DEPENDS test1 test2) > > to my CMake file, and instead of running 'make -j test1 test2' I run

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Dan Kegel
On Mon, Sep 30, 2013 at 11:04 AM, Dan Kegel wrote: > If CMake is going to only > behave properly when an argument is given in uppercase, it should > abort if the argument is given in lowercase. Throw the users a bone! > There is *no excuse* for forcing users to guess. > > I thought there was a bu

Re: [CMake] [PATCH] SunStudio 12 regex for CheckCCompilerFlags.cmake

2013-09-30 Thread William Orr
On Sep 30, 2013, at 10:14 AM, Rolf Eike Beer wrote: > Am Montag, 30. September 2013, 16:15:07 schrieb William Orr: >> This macro currently doesn't properly match warnings emitted by SunStudio >> 12. This patch fixes that. > > I guess this also applies to the C++ compiler? Please rebase this cha

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Dan Kegel
On Mon, Sep 30, 2013 at 10:29 AM, Williams, Norman K wrote: > I don't know why that is scary. It is the way CMake works, something that > one must accomodate in order to use CMake. I find it scary, annoying, and difficult to learn. If CMake is going to only behave properly when an argument is gi

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Williams, Norman K
I don't know why that is scary. It is the way CMake works, something that one must accomodate in order to use CMake. Obviously, if the Kitware people had it to do all over again, they probably would do some things differently. But CMake has evolved (a lot!) over the years, and it has some syntact

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Williams, Norman K
Actually I see the problem now -- it works fine if you build with one job, but if you run 2 jobs, it for some reason runs the custom command and the library build command twice. Which is weird, and probably a bug. Without digging into the generated Makefiles, it seems like the custom command thro

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Sumit Adhikari
Furthermore gvim adds more confusion to it On Mon, Sep 30, 2013 at 10:43 PM, Sumit Adhikari wrote: > Thanks. This is scary :( > > Regards, Sumit > > > On Mon, Sep 30, 2013 at 10:32 PM, Williams, Norman K < > norman-k-willi...@uiowa.edu> wrote: > >> It might be confusing -- well it is confusing!

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Williams, Norman K
I don't see the problem you're having. I re-wrote your CMakeLists.txt slightly to not use Unix commands: cmake_minimum_required(VERSION 2.8) project(Test) add_custom_command(OUTPUT file.c COMMAND echo "GENERATING FILE"

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Jakub Schmidtke
The workaround I found so far is to add a custom target that depends on the targets I want to build. So if I add this: add_custom_target(test12 DEPENDS test1 test2) to my CMake file, and instead of running 'make -j test1 test2' I run 'make -j test12' everything seems to be fine... On Mon, Sep

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Sumit Adhikari
Thanks. This is scary :( Regards, Sumit On Mon, Sep 30, 2013 at 10:32 PM, Williams, Norman K < norman-k-willi...@uiowa.edu> wrote: > It might be confusing -- well it is confusing! -- but CMake built-in > commands, functions and macro names are case insensitive. CMake command > keywords are cas

Re: [CMake] [PATCH] SunStudio 12 regex for CheckCCompilerFlags.cmake

2013-09-30 Thread Rolf Eike Beer
Am Montag, 30. September 2013, 16:15:07 schrieb William Orr: > This macro currently doesn't properly match warnings emitted by SunStudio > 12. This patch fixes that. I guess this also applies to the C++ compiler? Please rebase this change on the cxx-flags topic on stage where the handling of thos

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Rolf Eike Beer
Am Montag, 30. September 2013, 12:58:40 schrieb Jakub Schmidtke: > Hi, > > I am trying to get dependencies right in a project that uses auto-generated > sources. > I have a library, that uses auto-generated files, and other executables > that use that library. > I created a set of CMakeLists.txt f

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Williams, Norman K
It might be confusing -- well it is confusing! -- but CMake built-in commands, functions and macro names are case insensitive. CMake command keywords are case sensitive. The first is a legal CMake command. The second is a fatal CMake error: CMake Error at CMakeLists.txt:13 (if): if given argum

Re: [CMake] Need HP-UX dashboards for CMake (HP-UX B.11.31)

2013-09-30 Thread Bill Hoffman
On 9/30/2013 12:26 PM, Amul Shah wrote: Hi Bill, What's involved in the dashboard? Does the server pull and build or is the build pushed? thanks, Amul You setup a cronjob and pull from us. The server does not have any access to your machine. Basically, a ctest script is run that pulls from

[CMake] Problems with auto-generated sources

2013-09-30 Thread Jakub Schmidtke
Hi, I am trying to get dependencies right in a project that uses auto-generated sources. I have a library, that uses auto-generated files, and other executables that use that library. I created a set of CMakeLists.txt files that show the problem. To run it you need test.c and org.c in the source

Re: [CMake] Need HP-UX dashboards for CMake (HP-UX B.11.31)

2013-09-30 Thread Amul Shah
Hi Bill, What's involved in the dashboard? Does the server pull and build or is the build pushed? thanks, Amul On 09/30/13 11:12, Bill Hoffman wrote: Hi all, Does anyone have access to a HP-UX B.11.31 machine that can run nightly CMake dashboards? Thanks. -Bill _ The inform

[CMake] Possible Bug in Cmake

2013-09-30 Thread Sumit Adhikari
Dear All, if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") differs from if(${CMAKE_SYSTEM_NAME} matches "Linux") Is this behavior expected ? Regards, Sumit -- Sumit Adhikari, Senior Architect - Product Development, Synphony Teleca -- Powered by www.kitware.com Please keep messages on-topic and ch

[CMake] [PATCH] SunStudio 12 regex for CheckCCompilerFlags.cmake

2013-09-30 Thread William Orr
This macro currently doesn't properly match warnings emitted by SunStudio 12. This patch fixes that. 0001-Added-SunStudio-12-regex-for-CheckCCompilerFlag.patch Description: Binary data signature.asc Description: Message signed with OpenPGP using GPGMail -- Powered by www.kitware.com Please

[CMake] error on Mac while creating a fortran library

2013-09-30 Thread Manav Bhatia
Hi, I am attempting to compile a library (Dakota) on my Mac workstation, but the process exits while attempting to create a library from fortran code in order to test the fortran compiler installation. The .o file is built without problems, but at the stage when it is supposed to run the "ar

[CMake] Need HP-UX dashboards for CMake (HP-UX B.11.31)

2013-09-30 Thread Bill Hoffman
Hi all, Does anyone have access to a HP-UX B.11.31 machine that can run nightly CMake dashboards? Thanks. -Bill -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 bill.hoff...@kitware.com http://www.kitware.com 518 881-4905 (Direct) 518 371-3971 x105 Fax (518) 371-4573 -

[CMake] add_custom_command, TARGET_LINKER_FILE and CMAKE_BUILD_TYPE

2013-09-30 Thread Romain LEGUAY
Hello everyonne, I try to build my lybrary in debug and release mode in only one command. The purpose is to create a package with the minimum files (library in debug and release mode and headers) inside it. Actually, I do something like this: add_custom_command(OUTPUT build_release_debug

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread SF Markus Elfring
> Perhaps, all headers-only libraries could be handled by the FindBoost module I would appreciate if corresponding CMake scripts will consider a better handling for such software. > and then reported by CMake: > "Spirit is headers-only, shall not be specified with COMPONENTS" I would prefer a d

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread Mateusz Loskot
On 30 September 2013 13:58, SF Markus Elfring wrote: > >> It might be not obvious from the manual [1], but COMPONENTS is dedicated >> to request lookup for the Boost libraries which are built as binary >> components. > > Can this documentation be improved? I'm sure it can, I presume patches for

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread SF Markus Elfring
> Boost.Spirit is headers-only library, so there is no binary library supplied. Thanks for your response. > It might be not obvious from the manual [1], but COMPONENTS is dedicated > to request lookup for the Boost libraries which are built as binary > components. Can this documentation be imp

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread Mateusz Loskot
On 30 September 2013 12:00, SF Markus Elfring wrote: > Hello, > > I try to use a macro call like "find_package(Boost 1.49 REQUIRED COMPONENTS > spirit)". Boost.Spirit is headers-only library, so there is no binary library supplied. It might be not obvious from the manual [1], but COMPONENTS is d

[CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread SF Markus Elfring
Hello, I try to use a macro call like "find_package(Boost 1.49 REQUIRED COMPONENTS spirit)". But I get surprised by the following messages despite of a complete installation from the current source files of this software library. elfring@Sonne:~/Projekte/Bau/boot_parameters/boost> cmake . -DBoos

[CMake] can start menu content depend on what components selected for install

2013-09-30 Thread West Lars-Gunnar
I can't figure out how to generate a start menu that reflects my selection of installed components. This is for installation on windows using cmake, cpack and nsis. Is it possible to do? Regards Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http: