Re: [CMake] file(SHA1) vs string(SHA1) consistency

2016-02-26 Thread Sergey Zakharchenko
Hello, 2016-02-25 17:58 GMT+03:00 Ruslan Baratov via CMake : > * since CMake is a cross-platform tool I think it make sense that command > `file(WRITE "..." "a\nb")` produce identical files on all platforms Seconded; READ and WRITE could at least have a BINARY flag that does it so that I don't ha

[CMake] cpack generator variable

2016-02-26 Thread Tiago Macarios
Hi All, I have a cmake project which one of the install targets is a collection of files. This files change depending on the configuration (Release, Debug...). I would like to be able to install the files like so: install(DIRECTORY $ DESTINATION bin COMPONENT files) >From the docs I see

[CMake] MSMPI (v6) and cmake 3.4.3

2016-02-26 Thread P Chakraborty
Hi, I have a Fortran project that needs to link to Microsft's MPI libraries - msmpi.lib and msmpifec.lib but the MPI_Fortran_LIBRARIES variable returned by FindMPI listst just the first one. As a result, my CMakeLists.txt looks like cmake_minimum_required(VERSION 2.8) project(ExampleMPI Fortran)

Re: [CMake] check_cxx_compiler_flag fails silently for complex compiler paths

2016-02-26 Thread Andrew Hundt
Thanks for the explanation of how to solve the problem, that’s very helpful I’ll give it a try. Shouldn’t the variable be set to something like “FALSE” even if reporting incorrectly when left blank? I appreciate the workaround but I believe there is still a bug that would need to be addressed. Is

Re: [CMake] check_cxx_compiler_flag fails silently for complex compiler paths

2016-02-26 Thread Gregor Jasny via CMake
Hello, On 26/02/16 00:00, Andrew Hundt wrote: > I believe check_cxx_compiler_flags is failing due to a long/complicated > compiler path. > > Specifically my compiler is set to: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ > > CMake version: 3.4.3 >

[CMake] Link library file name with version suffix

2016-02-26 Thread Neil Carlson
cmake is generating a library link line that looks like: /.../nagfor -PIC -Wl,-shared -Wl,-Xlinker,-soname,-Xlinker,libnetcdff.so.6 -o libnetcdff.so.6.1.1 [...] /.../libnetcdf.so.11.0.0 /.../libhdf5_hl.so ... My issue is with the "11.0.0" suffix on the libnetcdf.so library. This particular c

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Nicholas Braden
For reference, the issue isn't uncompression, it's that the link you provided is an HTML document generated by the web server to list the files in that directory for humans and not machines :) On Fri, Feb 26, 2016 at 9:10 AM, Cedric Doucet wrote: > > Thank you very much Nicholas! > For the moment

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
Thank you very much Nicholas! For the moment, option B sounds better for me. :) I think it could be helpful to be able to disable the uncompression step of ExternalProject_Add, or to control it with a variable named UNCOMPRESSION_COMMAND or something similar. Cheers, Cédric - Mail or

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Nicholas Braden
Hmm, if it were available as an FTP share you may have been able to use a command line program via DOWNLOAD_COMMAND, but in this case I think you really only have two options: A. Write a small portable program compiled as part of your project, with its task being to download that directory. Make s

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Nicholas Braden
I'm not sure how you would download a directory without it being in some sort of archive. If you just want to use an existing directory, use the SOURCE_DIR option instead. On Fri, Feb 26, 2016 at 8:37 AM, Cedric Doucet wrote: > > Hello, > > I would like to know if it's possible to download and in

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
Hello Nicholas, thank you for your answer. Actually, it's not my own directory and I have no choice. I want to download source files from there : http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/c++/ I know how to do it with FILE(DOWNLOAD ...) but I would like to know if there is a way to do

[CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
Hello, I would like to know if it's possible to download and install an external project from a source directory instead of a tarball. I tried to do it with ExternalProject_Add function but it tries to uncompress source files and then fails. Cédric -- Powered by www.kitware.com Please k