File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,13 @@ endif ()
5959
6060# try to find netcdf support
6161
62- find_library (NETCDF_LIBRARY NAMES netcdf )
62+ if (DEFINED NETCDF_USER_PATH)
63+ message (STATUS "Testing user NetCDF path" )
64+ find_library (NETCDF_LIBRARY NAMES netcdf
65+ PATHS ${NETCDF_USER_PATH} NO_DEFAULT_PATH )
66+ else ()
67+ find_library (NETCDF_LIBRARY NAMES netcdf )
68+ endif ()
6369
6470if (NETCDF_LIBRARY)
6571 message (STATUS "NetCDF library found" )
@@ -70,7 +76,13 @@ endif ()
7076
7177# try to find openmp support
7278
73- find_package (OpenMP )
79+ if (DEFINED OPENMP_USER_PATH)
80+ message (STATUS "Testing user OpenMP path" )
81+ find_package (OpenMP
82+ PATHS ${OPENMP_USER_PATH} NO_DEFAULT_PATH )
83+ else ()
84+ find_package (OpenMP )
85+ endif ()
7486
7587if (OpenMP_CXX_FOUND AND (OpenMP_CXX_VERSION LESS 3))
7688 set (OpenMP_CXX_FOUND FALSE )
You can’t perform that action at this time.
0 commit comments