Re: [CMake] Clarifying Cmake behavior

2016-03-19 Thread James Benze
I did a bit more searching around, and, for me at least, setting Boost_REALPATH on also seems to be a valid solution to the problem, as the linker will no longer get confused between the system installed libraries and my custom ones. I dunno if that works in all situations, but it seems to be the

Re: [CMake] fixup_bundle on Windows : issue with multiple exe applications

2016-03-19 Thread David Cole via CMake
A multiple folder approach will be very difficult. The basic assumptions are: - On Windows, the "one executable path" is the destination path to which to copy all of the DLLs that need to be copied, so they all end up in the same directory. (You'd have to have multiple copies in multiple location

Re: [CMake] EXTERNAL: Difficulty making MPI and OpenMP Fortran shared library with CMake

2016-03-19 Thread Jim.Eliot
Hi, I’m not an expert but maybe I can help anyway. I think that setting CMAKE_FORTRAN_COMPILER might be failing because it should be CMAKE_Fortran_COMPILER (case sensitive). However, I am not sure that it is the best way to handle MPI code. I think that it might be better to use the MPI packag

[CMake] why no cumulative variable operations via the commandline?

2016-03-19 Thread René J . V . Bertin
Hi, I've been wondering about something that is a real stumbling block in a build/distribution system like MacPorts where settings can be modified in any number of consecutive steps. For instance, depending on what dependencies a package ("port") requires and how those dependencies are installe

[CMake] Difficulty making MPI and OpenMP Fortran shared library with CMake

2016-03-19 Thread Rand Huso
I would like to use CMake for a personal project instead of make (which does work), but I can't seem to get CMake to work the way I think it should. The command "cmake ." runs fine, but the make produces this: Scanning dependencies of target MIFF Linking Fortran shared library libMIFF.so gfortran:

Re: [CMake] Building with Cmake using Boost problem (Karel Geiregat)

2016-03-19 Thread Karel Geiregat
OH GOD ! Just saying, i have spent 3 days finding a solution to this problem since the files got provided from a 3th party provider. The team that got assigned to this project asked me (i'm senior QA and responsible for further development). In the meanwhile, this project has to be set in standby

[CMake] Building with Cmake using Boost problem

2016-03-19 Thread Karel Geiregat
Dear people at cmake Today, I have a problem with using cmake and Boost to build up Apache Avro , which is a data-serializer.I have to use that "avro" which can be built with cmake and boost. However, there is a problem when building up the component by using the CMakeLi

[CMake] Cmake cannot locate header file that exists on my system

2016-03-19 Thread Chris Coutinho
I'm attempting to install Dakota 6.3.0 using cmake 3.5.0 on a 64-bit Linux box from source (to link python and MATLAB), and Dakota is having trouble finding some dependencies. I've been able to install and use Dakota successfully on my previous machine (64-bit, OpenSUSE 13.2, cmake 3.3.0) withou

Re: [CMake] why no cumulative variable operations via the commandline?

2016-03-19 Thread Nicholas Braden
The command line is the first point where variables can be defined (all code runs after this), so I am not sure where you expect pre-existing values to come from in order for a += or -= to make sense. Could you give an example of when you would find them useful? I think maybe I am not understanding

[CMake] Proper way to redefine build type compiler options

2016-03-19 Thread Neil Carlson
What is considered best practice for (re)defining build-type compiler options for a project, especially one that may find itself as a subproject of something larger? To be concrete, say for Debug I want the project to use a set of warn/check options. Should I set (or add to) CMAKE_C_FLAGS_DEBUG,

Re: [CMake] File names with unbalanced square brackets

2016-03-19 Thread Petr Kmoch
Hi Allen. I'm not sure whether it's documented, but CMake interprets square brackets as escaping the semi-colon character (which means a semi-colon in square brackets will not work as a list item separator). You will probably have to translate the file names for CMake processing by replacing [ and

Re: [CMake] File names with unbalanced square brackets

2016-03-19 Thread Allen Barnett
Hi Petr: You're right! If I rename "c" to "c]", it treats the whole "/home/allen/test/b[;/home/allen/test/c]" as an element of the list. The other file names are correctly split apart. Thanks, Allen On Fri, Mar 18, 2016 at 3:17 AM, Petr Kmoch wrote: > Hi Allen. > > I'm not sure whether it's docu

Re: [CMake] Cmake cannot locate header file that exists on my system

2016-03-19 Thread Chris Coutinho
Thanks for the quickfix Andreas, that fixed the problem. I've also found the bug that's the reason for the error, the compiler flags are mixing up relative and absolute pathnames. This is definitely a Dakota issue. Setting verbose option on when executing make gives me a better idea of what's w

Re: [CMake] why no cumulative variable operations via the commandline?

2016-03-19 Thread René J . V . Bertin
Nicholas Braden wrote: > sense. Could you give an example of when you would find them useful? I > think maybe I am not understanding what you want. Yeah, I realise my explanation may not have been very clear. > If you just want to pass a list of values to a variable on the command > line, separ

Re: [CMake] why no cumulative variable operations via the commandline?

2016-03-19 Thread Nicholas Braden
Ah, I understand now - I have a habit of forgetting that you can configure existing CMake builds by repeatedly invoking cmake. I don't know if such a feature exists but it definitely sounds useful. On Sat, Mar 19, 2016 at 12:03 PM, René J. V. wrote: > Nicholas Braden wrote: > > >> sense. Could yo

Re: [CMake] why no cumulative variable operations via the commandline?

2016-03-19 Thread René J . V . Bertin
Nicholas Braden wrote: > Ah, I understand now - I have a habit of forgetting that you can > configure existing CMake builds by repeatedly invoking cmake. I don't > know if such a feature exists but it definitely sounds useful. Yes, that would be another use case! R. -- Powered by www.kitware

[CMake] Recompiling before when installing target

2016-03-19 Thread gedemagt
Is it possible recompile and link a single file before installing a target? I have some string I want to hardcode into the source, so I use configure_file() to add it to a .cpp file and compile it. However, these values are different if the project is installed using 'make install'. Is it possible

Re: [CMake] File names with unbalanced square brackets

2016-03-19 Thread Allen Barnett
Hi David: Per your comment on the SO thread about escaping the ['s with a backslash:You mean something like this: file( GLOB FILES "*" ) string( REPLACE "[" "\\[" FILES_UPD "${FILES}" ) That doesn't appear to work. I still get everything past the first [ run together in the foreach. Thanks, Alle

Re: [CMake] File names with unbalanced square brackets

2016-03-19 Thread CHEVRIER, Marc
I think you can resolve your problem with the following syntax for foreach command: Foreach (FILE IN LISTS FILES) In this case the list is not expanded in your source so square brackets is no longer interpreted… From: CMake mailto:cmake-boun...@cmake.org>> on behalf of Petr Kmoch mailto:petr.

Re: [CMake] Cmake fails to build libssh2 - wants VC 2010 told for VC 2015 build

2016-03-19 Thread Sergei Nikulov
2016-03-16 15:40 GMT+03:00 Elizabeth Fischer : > Just get the tarball from: > > https://github.com/libssh2/libssh2/tarball/libssh2-1.7.0 > > We've already discussed/solved this The problem was --config RelWithDebugInfo should be --config RelWithDebInfo -- Best Regards, Sergei Nikulov --

Re: [CMake] Cmake cannot locate header file that exists on my system

2016-03-19 Thread Andreas Naumann
You have to add the directory /usr/include/trilinos to the c++ include directories. The fastest workaround would be, to add the directory to the CMAKE_CXX_FLAGS using ccmake or cmake-gui. The better solution is to look for any hint regarding trilinos in the CMakeLists.txt of dakota and check, wh

Re: [CMake] Building with Cmake using Boost problem

2016-03-19 Thread Hendrik Sattler
Am 16. März 2016 22:13:14 MEZ, schrieb Karel Geiregat : >According to the cmake documentation of FindBoost > you have to >name >the required libraries as described; > >"date_time" for "libboost_date_time" You do NOT have to rename any fil

Re: [CMake] Cmake fails to build libssh2 - wants VC 2010 told for VC 2015 build

2016-03-19 Thread Elizabeth Fischer
Just get the tarball from: https://github.com/libssh2/libssh2/tarball/libssh2-1.7.0 On Tue, Mar 15, 2016 at 7:50 AM, Barry Scott wrote: > On Tue, 15 Mar 2016 10:37:04 +0300 > Sergei Nikulov wrote: > > > Just checked with following steps > > > > 1. Opened command window (cmd.exe) > > 2. Clone