Re: [CMake] Dependent variable definitions disappear in fortran module files
This was in fact the case. Sorry not to report back...John On 10/4/11 6:09 AM, Brad King wrote: On 9/30/2011 1:15 PM, John R. Cary wrote: When I build the definitions from the dependency are missing from the .mod file: [snip] So something later in the cmake build seems to be removing these definitions. Perhaps another target compiles the/a source file producing the same .mod file but with different definitions later in the build? That may overwrite the .mod file with a different one. -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Dependent variable definitions disappear in fortran module files
On 9/30/2011 1:15 PM, John R. Cary wrote: When I build the definitions from the dependency are missing from the .mod file: [snip] So something later in the cmake build seems to be removing these definitions. Perhaps another target compiles the/a source file producing the same .mod file but with different definitions later in the build? That may overwrite the .mod file with a different one. -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Dependent variable definitions disappear in fortran module files
I have a library that depends on another library (netcdf). When I build the definitions from the dependency are missing from the .mod file: octet.cary$ grep -i nf_inq_varid ezcdf_attrib.mod octet.cary$ But if I just compile again, they are there: octet.cary$ /usr/bin/gfortran -DHAVE_CONFIG_H -fPIC -pipe -O3 -I/usr/local/contrib/netcdf-4.1.2-ser/include-c /home/research/cary/projects/facetsall/builds/fciowrappers-1.0.48-r124/ezcdf/ezcdf_attrib.f90 -o CMakeFiles/ezcdf.dir/ezcdf_attrib.f90.o octet.cary$ grep -i nf_inq_varid ezcdf_attrib.mod403 'nf_inq_varid' 'ezcdf_attrib' 'nf_inq_varid' 1 ((PROCEDURE404 'nf_inq_varids' 'ezcdf_attrib' 'nf_inq_varids' 1 ((PROCEDURE'nf_inq_vardimid' 0 402 'nf_inq_varid' 0 403 'nf_inq_varids' 0 404 So something later in the cmake build seems to be removing these definitions. Any idea how to keep them? Thx.John Cary -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake