Re: [CMake] Fortran project compiling with -isystem causing error

2015-03-26 Thread Hugh Sorby
explicit and say that -isystem dirs are not searched for .mod files. The documentation as it stands implies to me that -isystem is the same as -I but for ordering. Again thanks, Hugh. On 03/27/15 02:35, Brad King wrote: On 03/25/2015 08:26 PM, Hugh Sorby wrote: |-- ex | |-- CMakeLists.txt

Re: [CMake] Fortran project compiling with -isystem causing error

2015-03-25 Thread Hugh Sorby
example, hopefully I will inadvertently fix my problem. I'll report back on the outcome. On 03/26/15 04:18, Brad King wrote: On Tue, Mar 24, 2015 at 11:03 PM, Hugh Sorby wrote: I am trying to create a simple Fortran project that relies on a module file that has been built by another project. I

Re: [CMake] Fortran project compiling with -isystem causing error

2015-03-25 Thread Hugh Sorby
to include the include directories, if you comment out the target_link_libraries command in ex/CMakeLists.txt the build will succeed and -I will be used to include the include directories. I am using: CMake 3.2.1 gfrotran 4.9.2 On 03/26/15 12:48, Hugh Sorby wrote: My first simple example

[CMake] Fortran project compiling with -isystem causing error

2015-03-24 Thread Hugh Sorby
Hi All, I am trying to create a simple Fortran project that relies on a module file that has been built by another project. I have added the directory containing the module file into the include_directories command but the project isn't compiling and raises an error can't find module. The

[CMake] SWIG and dependency scanning

2013-01-10 Thread Hugh Sorby
I am using SWIG with #include directives in the interface file. When I compile the project for the first time everything works fine, but when I make modifications to the header file included by the interface file the generated cxx wrapper file is not re-generated. But the generated cxx

Re: [CMake] SWIG generated .cxx file location issue.

2012-11-02 Thread Hugh Sorby
Hi, I'm still having problems with this. It seems my swig is not creating the output directory for the swig generated cxx file. To get this to work I have had to add a further make_directory command to the custom command to create the required output directory before the file is swigged.

Re: [CMake] SWIG generated .cxx file location issue.

2012-11-01 Thread Hugh Sorby
Finally, I have got around to this again. My problem is that my swig files are a sibling directory of the python where the CMakeLists.txt file is so I specify the relative path using '..' If I try and pass through the absolute path of the swig interface files I get a CMake error telling me it

[CMake] Patch as an option in command mode

2012-10-30 Thread Hugh Sorby
Hi, Is there any motivation for adding patch into the options for command mode? I would find it convenient and I use it just about as much as tar. Thanks. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

[CMake] Separate extract step for ExternalProject.

2012-10-30 Thread Hugh Sorby
I have a use case where I would like to have a separate extract step for an external project. I have added an issue here: http://public.kitware.com/Bug/view.php?id=13622 which contains a patch file for implementing this. -- Powered by www.kitware.com Visit other Kitware open-source

[CMake] SWIG generated .cxx file location issue.

2012-09-25 Thread Hugh Sorby
I am wrapping a library with SWIG and using CMake to generate the build scripts for me, this is all working really well. My issue is the location of the generated .cxx files. I have my code laid out as follows: swig/interface/*.i -- swig interface files python/CMakeLists.txt -- Python

[CMake] External project and patch files

2011-07-17 Thread Hugh Sorby
Hello All, I am using external project to well build some external projects. I also patch these projects to play nice for me. For this I use the ExternalProject_Add PATCH_COMMAND. Right now I have two difficulties. 1. I have to combine all my fixes into one patch. I would prefer to have a

Re: [CMake] Eclipse Galileo and CDT version 6.0.2

2010-06-22 Thread Hugh Sorby
ke anywhwere, in the .cproject of .project files, just nmake. Hugh. Alexander Neundorf wrote: On Friday 11 June 2010, Hugh Sorby wrote: I am attempting to use Eclipse Galileo with CDT version 6.0.2 on windows 7 to do software development on. But I am unable to build the softwar

[CMake] Eclipse Galileo and CDT version 6.0.2

2010-06-10 Thread Hugh Sorby
I am attempting to use Eclipse Galileo with CDT version 6.0.2 on windows 7 to do software development on. But I am unable to build the software. I am getting the following message in the console window in Eclipse. Error launching builder (nmake all ) (Cannot run program nmake: Launching

Re: [CMake] multi-tiered config file inclusion

2010-05-30 Thread Hugh Sorby
So this is what I put into my OpenCASCADE config file SET( CONFIG_FILE_CONTENTS \nGET_FILENAME_COMPONENT( SELF_DIR \\${CMAKE_CURRENT_LIST_FILE}\ PATH ) \nINCLUDE( \${SELF_DIR}/OpenCASCADE-targets.cmake ) \nGET_FILENAME_COMPONENT( OPENCASCADE_INCLUDE_DIRS

[CMake] multi-tiered config file inclusion

2010-05-27 Thread Hugh Sorby
Hi All, The question I have is about our old friend the static library and config files. In my project I use two other libraries that I depend on (both built via CMake) 1. OpenCASCADE 2. wxWidgets plus some others. So, when I build my project in its application form I locate the

[CMake] file INSTALL cannot set modification time on itkImage.h on windows 7 install

2010-05-19 Thread Hugh Sorby
pertinent part of error message: CMake Error at Code/Common/cmake_install.cmake:39 (FILE): file INSTALL cannot set modification time on x86-windows/include/InsightToolkit/Common/itkImage.h I am getting this error when I am installing some libraries that my project depends on. This is

[CMake] Removing MBCS from visual studio projects

2010-05-13 Thread Hugh Sorby
How can I, or is it possible to, remove multi byte character set MBCS setting from visual studio projects? Cheers. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

[CMake] ExternalProject_add on windows 7 passing arguments with colons

2010-05-05 Thread Hugh Sorby
I am using ExternalProject_add on windows 7 and I am having difficulty passing in some arguments. I have mocked up an example showing my problem. To summarise: When I pass a path e.g. D:/somehere/cool through with the CMAKE_ARGS args I get out just D:. has anyone else come across this?

Re: [CMake] cmake -E tar using bzip2 compression

2010-03-18 Thread Hugh Sorby
on this one but I don't know why. Any further information on this would be great. Hugh On 13/11/09 05:27, Bill Hoffman wrote: Kelly T. Kirk (CISD/CIV) wrote: Hugh Sorby wrote: Hi, I am using CMake 2.6 and I would like to be able to decompress bz2 files. Is it possible to add bz2

Re: [CMake] FindPerlLibs.cmake bug or I don't understand string regex replace

2009-12-21 Thread Hugh Sorby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Finally I have gotten around to doing this. I have created this patch on Linux so hopefully missing line ends are back. Alexander Neundorf wrote: On Monday 07 December 2009, Hugh Sorby wrote: I have been trying to get FindPerlLibs to work

[CMake] INSTALL( EXPORT ... requires target that is not in export set

2009-12-07 Thread Hugh Sorby
I am trying to use INSTALL( EXPORT ... but failing. I have a project like this ImageMagick/CMakeLists.txt -- 1. ImageMagick/magick/CMakeLists.txt -- 2. ImageMagick/coders/CMakeLists.txt -- 3. 1. calls ADD_SUBDIRECTORY for both 2 and 3 2. has a target magick that is a library 3. has a target

[CMake] FindPerlLibs.cmake bug or I don't understand string regex replace

2009-12-06 Thread Hugh Sorby
I have been trying to get FindPerlLibs to work on windows (Vista). It's taken me a while but I think I have found the problem. As far as I have been able to identify the string regex replace call returns (what I think is) an undesirable result. Below is an example to illustrate the

Re: [CMake] ExternalProject questions

2009-11-26 Thread Hugh Sorby
I have nothing to say for 1. and 2. but I also would like to see 3. in CMake. Currently I am patching some third_party sources to suit my needs and it would be easier for me if patch was added as an CMake -E command. I was considering making a feature request but since Michael has mentioned

[CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
So I am trying to get CMake to apply patches to third party source. First off can someone confirm (, I'm hoping I haven't missed the obvoius) that there isn't an inbuilt command to apply unified diffs. Secondly can anyone tell me how to stop CMake consuming the -i in following command:

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
Sorry about that missed a chdir should be cmake -E chdir netgen patch -p0 -i netgen-4.9.11.patch from following the documentation: cmake -E chdir dir cmd [args]... Eric Noulard wrote: 2009/11/24 Hugh Sorby h.so...@auckland.ac.nz: So I am trying to get CMake to apply patches to third

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
I found this http://www.cmake.org/Bug/view.php?id=6945 but didn't manage to reopen it so I submitted this bug report http://www.cmake.org/Bug/view.php?id=9965 ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
the script with execute_process or a different cmake -E command line... On Tue, Nov 24, 2009 at 7:43 PM, Hugh Sorby h.so...@auckland.ac.nz mailto:h.so...@auckland.ac.nz wrote: Thanks Alan, I will attempt to: 1) search the CMake bug tracker (not very good at this most never

[CMake] Compiling zlib and libpng with one command

2009-11-12 Thread Hugh Sorby
I am trying to compile zlib and libpng with one command, or more specifically one series of commands. My aim is to get as simple as possible to the following cmake make make install So what I have done so far is to layout my directories like so: third_party | --zlib | --libpng In each

[CMake] cmake -E tar using bzip2 compression

2009-11-11 Thread Hugh Sorby
Hi, I am using CMake 2.6 and I would like to be able to decompress bz2 files. Is it possible to add bz2 compression to the tar command (or even better is it already there?). I was hoping to do something like cmake -E tar xjf my_really_cool_source_files.tar.bz2 I have looked but didn't