Re: [CMake] Include directory issue ... -I are not separated?

2012-06-21 Thread Ateljevich, Eli
getting the project up and running. Eli -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, June 20, 2012 11:36 PM To: Ateljevich, Eli Cc: cmake@cmake.org Subject: Re: [CMake] Include directory issue ... -I are not separated? 2012/6/21 Ateljevich, Eli

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Eric Noulard
2012/6/21 Ateljevich, Eli : > Eric > I have improved my envvar usage a bit further, I hope, by saying > include_directories( $ENV{NETCDF_INC} ) > rather than > include_directories( ${NETCDF_INC} ) This is not the way CMake is supposed to work. Normally you use find_library, file_path, etc... in o

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Ateljevich, Eli
-Original Message- From: Ateljevich, Eli Sent: Wednesday, June 20, 2012 3:05 PM To: Ateljevich, Eli; Eric Noulard Cc: cmake@cmake.org Subject: RE: [CMake] Include directory issue ... -I are not separated? Eric I have improved my envvar usage a bit further, I hope, by saying include_directories

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Ateljevich, Eli
Cc: cmake@cmake.org Subject: Re: [CMake] Include directory issue ... -I are not separated? I appreciate your patience as I seem to be struggling reporting some of the details properly. The real invocation is and has always been this: cmake -DCMAKE_Fortran_COMPILER=mpif90 ../src The

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Ateljevich, Eli
ro/-I/usr/local/dms/pkg/netcdf/4.1.3-intel12.0-parallel/include -c /home/eli/work/selfe_cmake/src/Hydro/sflux_9c.F90 -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, June 20, 2012 9:58 AM To: Ateljevich, Eli Cc: cmake@cmake.org Subject: Re:

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Eric Noulard
2012/6/20 Ateljevich, Eli : > Addendum: I should add that by now I have taken the failure line, put a space > in between the two -I components and run it directly in the shell and > verified it compiles fine (and without the space it fails as in cmake). Yes right. Collating -I shall fail, no pro

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Ateljevich, Eli
Thanks! -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Tuesday, June 19, 2012 10:57 PM To: Ateljevich, Eli Cc: cmake@cmake.org Subject: Re: [CMake] Include directory issue ... -I are not separated? 2012/6/20 Ateljevich, Eli : > Hi everone. I am gett

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Eric Noulard
2012/6/20 Ateljevich, Eli : > Hi Eric, > Very kind of you to reply. It is true that my example had some detritus from > one of the examples that I did not prune. I apologize for the sloppiness and > your advice certainly saves me some problems with the linker later. However, > it does not change

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-20 Thread Ateljevich, Eli
ou would recommend? Where does the reference to Hydro even come from? Thanks! -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Tuesday, June 19, 2012 10:57 PM To: Ateljevich, Eli Cc: cmake@cmake.org Subject: Re: [CMake] Include directory issue ... -I are not s

Re: [CMake] Include directory issue ... -I are not separated?

2012-06-19 Thread Eric Noulard
2012/6/20 Ateljevich, Eli : > Hi everone. I am getting a funny include flag and I wonder if anyone can > help. The project is in Fortran (though I don't think this matters) and the > structure can be distilled to: > > /myproj >   /build >   /src >      /Hydro > > I do the build in /build in linux

[CMake] Include directory issue ... -I are not separated?

2012-06-19 Thread Ateljevich, Eli
Hi everone. I am getting a funny include flag and I wonder if anyone can help. The project is in Fortran (though I don't think this matters) and the structure can be distilled to: /myproj /build /src /Hydro I do the build in /build in linux using "cmake -DCMAKE_Fortran_COMPILER .