[vtk-developers] vtk_netcdf
Christopher Knox
knoxc at uci.edu
Mon Jul 18 23:08:01 EDT 2005
Thanks I figured that this was a problem well within cmake's
capabilities.
I do know know which of the netcdf files requires the -fno-common
flag - so I just applied it to all the netcdf files. Adding the
following to the CMakeLists.txt file in the vtknetcdf directory
solved the problem.
IF(APPLE)
SET_SOURCE_FILES_PROPERTIES(
${netcdf_SRCS}
PROPERTIES COMPILE_FLAGS -fno-common)
ENDIF(APPLE)
Cheers,
Chris
PS I don't know if the was the 'right' place to modify the CMakeLists
files.
On Jul 18, 2005, at 5:50 PM, Mathieu Malaterre wrote:
> Christopher Knox wrote:
>
>> Hi,
>> I noticed that the NetCDF library has been checked into the
>> Utilities part of the vtk source base.
>> I have been working for a few months on the visualization of
>> netcdf data using vtk - although none of my netcdf data loaders
>> would comply with vtk coding styles - and I would be interested
>> in helping with or at least testing the netcdf functionality that
>> is clearly planned for vtk...
>> A small aside the CFLAG/CXXFLAG -fno-common needs to be passed
>> when building netcdf in order for it to link properly on OS X -
>> as currently the addition of the netcdf libraries causes the vtk-
>> cvs build to fail on OS X.
>>
>
> Technically we only need this on a few files. By any chance do you
> have the list ?
>
> All you need to do is:
>
> IF(APPLE)
> SET_SOURCE_FILES_PROPERTIES(
> "${VTKNETCDF_SOURCE_DIR}/foo.c"
> PROPERTIES COMPILE_FLAGS -fno-common)
> ENDIF(APPLE)
>
> Thanks
> Mathieu
>
More information about the vtk-developers
mailing list