diff --git a/cmake/Modules/SetUpNetCDF.cmake b/cmake/Modules/SetUpNetCDF.cmake index 48319ed9b..318c5ce58 100644 --- a/cmake/Modules/SetUpNetCDF.cmake +++ b/cmake/Modules/SetUpNetCDF.cmake @@ -12,3 +12,5 @@ IF(NOT NETCDF_FOUND) ENABLE_LANGUAGE(C) # Some libraries need a C compiler to find FIND_PACKAGE(NETCDF REQUIRED) ENDIF(NOT NETCDF_FOUND) + +INCLUDE_DIRECTORIES(${NETCDF_INCLUDE_DIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1f769d3fc..9d6d9cba0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,9 +40,6 @@ ENDIF () # RELEASE, PROFILING, and TESTING. INCLUDE(SetFortranFlags) -INCLUDE_DIRECTORIES($ENV{NETCDF_FORTRAN_HOME}/include;$ENV{NETCDF_HOME}/include) - - # Add the source files SET(STRICT_MATH_FILES ${SRC}/collision/collision_generate.f90