Re: [CMake] add_custom_commmand TARGET is unknown

2015-04-15 Thread Mark Abraham
Hi, CMakeLists.txt files are processed from start to finish, so if you want to refer to a target created in a subdirectory, then you need to have added that subdirectory before using that target. Mark On 16/04/2015 1:25 am, "Daniel Dilts" wrote: > I have a function that does something like thi

Re: [CMake] control dependencies in cmake stage

2015-03-12 Thread Mark Abraham
ards, Tomasz. > > 2015-03-11 0:15 GMT+01:00 Mark Abraham : > >> Hi, >> >> Sure, this is straightforward to do all at make time, if you're prepared >> to find out what the names of the generated files are. They must follow >> some pattern ;-). Solutions with

Re: [CMake] control dependencies in cmake stage

2015-03-10 Thread Mark Abraham
name of the files that will be generated > before generation phase occurs. > > Therefore I can't use set_source_files_properties( foo.cxx PROPERTIES > GENERATED true) in cmake stage. Please drop a line if you know how to > bypass this limitation. > > Thanks, Tomasz. >

Re: [CMake] control dependencies in cmake stage

2015-03-09 Thread Mark Abraham
Hi, What are you generating that must be done at cmake time? Mark On 09/03/2015 5:36 pm, "Tomasz Majchrowski" wrote: > Hi, > > I'm wondering if there is an easy way to control the dependencies in the > cmake stage. Basically I would like skip execution of some script run over > execute_process

Re: [CMake] runtime env variables in ctest

2015-03-07 Thread Mark Abraham
On Sat, Mar 7, 2015 at 4:51 PM, Jim Edwards wrote: > I'm trying to pass a variable to ctest that will only be evaluated at > runtime. > If I hand edit the add_test command I can get it to work, the hand edited > add test looks like: > > add_test(piotest "runjob" "--np" "4" "--block" "$ENV{COBALT_

Re: [CMake] cmake 3.1- ubuntu 14.10 - IBM Power 8 - xl

2015-01-26 Thread Mark Abraham
Hi, I would start by playing with Modules/CMake*CompilerId* and if needed Modules/CMakeDetermine*Compiler.cmake in master branch of the CMake git repo. Presumably part of the problem is that the check for __clang__ is very early. You would need to take care that the older XL compilers still wo

Re: [CMake] Matlab producing image files for use with LaTeX

2015-01-12 Thread Mark Abraham
Hi, Another example along Kenneth's lines: https://github.com/gromacs/gromacs/blob/master/docs/manual/CMakeLists.txt Mark On Mon, Jan 12, 2015 at 5:10 PM, Moreland, Kenneth wrote: > Unlike Myles' answer, I'm going to assume that by noticing *.m files have > changed you mean that the changes ar

[CMake] issues with static linking and Intel compiler on Crays

2014-11-18 Thread Mark Abraham
maybe some kind of policy setting might be needed. Are there other options, or issues I haven't considered? Regards, Mark From 8ded90a797a2f1ea45cfc02bbb106b3c0128c730 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Tue, 18 Nov 2014 13:36:58 + Subject: [PATCH] Stop compiler tests append

Re: [CMake] --debug-trycompile not working as documented with the results being overwritten

2014-08-31 Thread Mark Abraham
Hi, Raw try_compile is not a great idiom for general use (though it is unclear why it is not working well for you). Using the Modules/Check*cmake gear is a much better option, e.g. with check_symbol_exists() Mark On Sun, Aug 31, 2014 at 11:33 PM, Alan W. Irwin wrote: > On 2014-08-31 12:43-070

Re: [CMake] Resetting CMAKE_Fortran_FLAGS for a specific file

2014-08-13 Thread Mark Abraham
On Wed, Aug 13, 2014 at 7:12 AM, marco restelli wrote: > 2014-08-13 15:53 GMT+0200, Mark Abraham : > > On Wed, Aug 13, 2014 at 3:18 AM, marco restelli > > wrote: > > > >> Hi Petr, > >>thanks, very informative! > >> > >&g

Re: [CMake] Resetting CMAKE_Fortran_FLAGS for a specific file

2014-08-13 Thread Mark Abraham
On Wed, Aug 13, 2014 at 3:18 AM, marco restelli wrote: > Hi Petr, >thanks, very informative! > > 2014-08-13 9:20 GMT+0200, Petr Kmoch : > > Hi Marco. > > > > Sane compilers allow later command-line options to override earlier ones, > > so what you're doing should be fine. Unfortunately, I kno

Re: [CMake] how to really change CMake linker

2014-08-12 Thread Mark Abraham
Hi David, Thanks very much for your reply! That was extremely helpful, and will let several packages document a functional workflow for the future. On Tue, Aug 12, 2014 at 5:38 AM, David Cole wrote: > Unless it is overridden somewhere else along the way, the following is > used to create the li

[CMake] how to really change CMake linker

2014-08-11 Thread Mark Abraham
Hi, In order to build an application with several HPC performance utilities, it would be good to be able to specify the linker and have it show up on the link command line. I learned from http://cmake.3232098.n2.nabble.com/Specify-the-link-command-in-CMake-td6786695.html that using CMAKE_C_LINKER

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 8/01/2011 1:53 AM, Michael Wild wrote: On 01/07/2011 03:26 PM, Mark Abraham wrote: It appears that FindMPI.cmake works fine, but then the CMake macro CHECK_C_SOURCE_COMPILES seems to fail its "check variable name for sanity" test. I can conceive of no reason for this happening. W

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 7/01/2011 11:17 PM, Michael Wild wrote: On 01/07/2011 11:36 AM, Mark Abraham wrote: Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however

[CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we need to be able to direct the use of the compiler information CMake found using the