Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Andreas Pakulat
Hi, On Fri, Jan 10, 2014 at 9:42 PM, Szilárd Páll wrote: > Indeed, I did (accidentally) download the .zip package. I was rather > annoyed that the bootstrap script did not have executable permission > set, but it did not ring a bell... Thanks guys! > > Just for curiosity: > - what *nix tool does

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Szilárd Páll
Indeed, I did (accidentally) download the .zip package. I was rather annoyed that the bootstrap script did not have executable permission set, but it did not ring a bell... Thanks guys! Just for curiosity: - what *nix tool does not support CR+LF? - the cross-platform codes I work on use LF newline

Re: [CMake] "find_package(MPI)" overriding "set(MPIEXEC)" in CmakeList.txt

2014-01-10 Thread Pettey . Lucas
That did not work. It still brings up the "mpiexec" from the operating system rather than the "aprun" job script submission command. Curiously, manually changing MPIEXEC in the CCMake Advanced screen works and is preserved throughout the configuration and Makefile generation process. I would re

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Andreas Pakulat
Hi, On Fri, Jan 10, 2014 at 2:16 PM, Szilárd Páll wrote: > Found a workaround: > $ find /tmp/cmake-2.8.12.1 -type f | xargs dos2unix > > This must be a bug, should I file a report? > Did you use the .zip file of the CMake sources? That one is intended to be used for Windows and hence contains W

Re: [CMake] Fwd: Visual Studio command line from CMake

2014-01-10 Thread David Cole
This approach should work... *but* you should always use the full path name to any custom commands. So the "runthis.bat" should be: "${CMAKE_CURRENT_BINARY_DIR}/runthis.bat" or "/runthis.bat" Glad you got it working with CMake, though. -Original Message- From: Rob McDonald To: CMake

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Nils Gladitz
On 01/10/2014 02:16 PM, Szilárd Páll wrote: Found a workaround: $ find /tmp/cmake-2.8.12.1 -type f | xargs dos2unix This must be a bug, should I file a report? Did you use the "Windows Source" zip file instead of the "Unix/Linux Source" tar.gz/tar.Z? Nils -- Powered by www.kitware.com Pleas

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Szilárd Páll
Found a workaround: $ find /tmp/cmake-2.8.12.1 -type f | xargs dos2unix This must be a bug, should I file a report? -- Szilárd On Fri, Jan 10, 2014 at 1:21 PM, Szilárd Páll wrote: > Hi, > > I'm trying to compile 2.8.12.1, but I keep bumping into an error: > [...] > /tmp/cmake-2.8.12.1/Bootstrap

[CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Szilárd Páll
Hi, I'm trying to compile 2.8.12.1, but I keep bumping into an error: [...] /tmp/cmake-2.8.12.1/Bootstrap.cmk/cmConfigure.h:27:24: warning: missing terminating " character [enabled by default] "8define CMAKE_DATA_DIR "/share/cmake-2 [...] This seems to be caused by a rather messed up-looking cmCo

Re: [CMake] "find_package(MPI)" overriding "set(MPIEXEC)" in CmakeList.txt

2014-01-10 Thread Yngve Inntjore Levinsen
Hi, Did Den 09. jan. 2014 22:49, skrev Pettey . Lucas: > Hello, > > On a Cray XE6, I am using find_package(MPI REQUIRED) in my CMakeLists.txt. It > correctly finds all of the MPI stuff, except that it sets the MPIEXEC to the > login node mpiexec command. I would like to override this behavior an

Re: [CMake] Generate *.cpp/*.hpp with add_custom_command, reference these in add_library in another subdirectory/CMakeLists?

2014-01-10 Thread Nils Gladitz
On 01/10/2014 11:21 AM, Martin Zenzes wrote: The problem: At the time the add_library() is processed by cmake, the referenced *.cpp/*.hpp files are not yet created, hence they are not found ("Cannot find source file"). Adding the generate-target to ALL does not help, as at the target is execu

[CMake] Generate *.cpp/*.hpp with add_custom_command, reference these in add_library in another subdirectory/CMakeLists?

2014-01-10 Thread Martin Zenzes
Hi, I'm generating a *.cpp/*.hpp pair of files using add_custom_command() + add_custom_target(). These are then referenced in add_library() to be compiled and linked into a library, together with some "static" source-files. This works well as long as both parts (generating and creating the li