Commit 1bd086c5 authored by Cory Quammen's avatar Cory Quammen

Set C_STANDARD property on CDIReader plugin target

Previously, it was attempted to be set on just the source file, but
C_STANDARD is not a valid property for a source file.
parent 716b235f
......@@ -19,7 +19,6 @@ include_directories(
# Please leave these definitions in here and do not change them.
# We use the cdi library to read both, netCDF2 and netCDF4 data.
add_definitions(-DHAVE_LIBNETCDF -DHAVE_NETCDF2 -DHAVE_NETCDF4)
set_source_files_properties(cdilib.c PROPERTIES C_STANDARD 99)
vtk_module_warnings_disable(C)
vtk_module_load(vtknetcdf)
......@@ -34,4 +33,5 @@ add_paraview_plugin(CDIReader "1.3"
REQUIRED_ON_SERVER
)
set_property(TARGET CDIReader PROPERTY C_STANDARD 99)
target_link_libraries(CDIReader LINK_PRIVATE ${vtknetcdf_LIBRARIES})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment