Skip to content
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

CMake doesn't detect changed environment variables when reloading project #548

Open
rcabell opened this issue Apr 23, 2021 · 1 comment
Open

Comments

@rcabell
Copy link
Collaborator

rcabell commented Apr 23, 2021

Regenerating build directory from an existing project doesn't detect changed environment variables correctly.

Expected Behavior

Calling cmake <path_to_NDHMS> in an existing build directory should detect changed environment variables, including WRF-Hydro options and compilers / MPI libraries

Current Behavior

Only changes to the path to netCDF are detected

Possible Solution

Update CMakeLists.txt to detect these changes similarly to how FindNetCDF.cmake handles them

@hellkite500
Copy link
Contributor

https://cmake.org/pipermail/cmake/2018-May/067501.html

Clearing (deleting) the CMakeCache.txt file before regenerating would probably do the trick as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants