-
Notifications
You must be signed in to change notification settings - Fork 46
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
NetCDF_INCLUDE_DIRS variable missing on Linux for Windows #37
Comments
Hi Noel
Thanks for reporting. I'm also testing on WSL and do not experience the
issue you did. I think my version of CMake is newer - maybe 3.21 or so -
maybe that can be the explenation.
You know you can also download the oneAPI Fortran compiler and work on
Windows. I actually share the code between Windows and WSL and build in two
different folders depending on if I'm in Linux or Windows.
Karsten
Den ons. 4. jan. 2023 kl. 17.29 skrev eesa10-bu ***@***.***>:
… Hi,
I don't know if this is a known problem, but I was unable to run the cmake
step on Linux for Windows (WSL - ubuntu). It exited with:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
extern/flexout/cmake/Modules/FindNetCDF.cmake:80 (find_package_handle_standard_args)
extern/flexout/CMakeLists.txt:39 (find_package)
I solved the problem by changing line 19 of
GOTM\code\extern\flexout\cmake\Modules\ FindNetCDF.cmake to
set(NetCDF_INCLUDE_DIRS ${includedir} CACHE STRING "NetCDF include
directories" FORCE)
without *FORCE* the variable was not being set.
Regards, Noel
—
Reply to this email directly, view it on GitHub
<#37>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVA42LU2IDHF5VHBDS23D3WQWQOJANCNFSM6AAAAAATQ7LEKI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Karsten Bolding
***@***.***
+4564422058
|
Hi Karsten, Thanks. My version of cmake is 3.16.3 - it was the default one that installed with Noel. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I don't know if this is a known problem, but I was unable to run the cmake step on Linux for Windows (WSL - ubuntu). It exited with:
I solved the problem by changing line 19 of GOTM\code\extern\flexout\cmake\Modules\ FindNetCDF.cmake to
set(NetCDF_INCLUDE_DIRS ${includedir} CACHE STRING "NetCDF include directories" FORCE)
without FORCE the variable was not being set.
Regards, Noel
The text was updated successfully, but these errors were encountered: