-
Notifications
You must be signed in to change notification settings - Fork 0
Set ecbuild module path so CMakeModules FindNetCDF takes precedence #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,8 @@ if $MODULES; then | |
| module load esma_cmake | ||
| module load cmakemodules | ||
| module load ecbuild | ||
| # module exports ecbuild_ROOT, but when building without modules ECBUILD_ROOT is set | ||
| export ECBUILD_ROOT=$ecbuild_ROOT | ||
| module load gftl-shared | ||
| module load yafyaml | ||
| module load netcdf | ||
|
|
@@ -61,13 +63,12 @@ CMAKE_OPTS=${STACK_mapl_cmake_opts:-""} | |
|
|
||
| cmake .. \ | ||
| -DCMAKE_INSTALL_PREFIX=$prefix \ | ||
| -DCMAKE_MODULE_PATH="${CMAKEMODULES_ROOT}/Modules;${ESMA_CMAKE_ROOT}" \ | ||
| -DCMAKE_MODULE_PATH="${ESMA_CMAKE_ROOT};${CMAKEMODULES_ROOT}/Modules;${ECBUILD_ROOT}/share/ecbuild/cmake" \ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Builds fine on Hera There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it is a good idea to send the esma cmake and ecbuild from here. I am sure it is explicitly included in mapl.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ecbuild is handled internally, but if you set it here then it doesn't get set again when ecbuild is loaded and override FindNetCDF. |
||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -DBUILD_WITH_FLAP=OFF \ | ||
| -DBUILD_WITH_PFLOGGER=OFF \ | ||
| -DESMA_USE_GFE_NAMESPACE=ON \ | ||
| -DBUILD_SHARED_MAPL=OFF \ | ||
| -DNetCDF_Fortran_EXTRA_LIBRARIES="`nc-config --libs`" \ | ||
| ${CMAKE_OPTS} | ||
|
|
||
| VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4} install | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.