wrf_hydro_nwm_public icon indicating copy to clipboard operation
wrf_hydro_nwm_public copied to clipboard

CMake doesn't detect changed environment variables when reloading project

Open rcabell opened this issue 3 years ago • 1 comments

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

rcabell avatar Apr 23 '21 16:04 rcabell

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

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

hellkite500 avatar Apr 23 '21 16:04 hellkite500