Skip to content

Commit

Permalink
Fix CMake when NWM_META=1
Browse files Browse the repository at this point in the history
* fix cmake reference to .nwm_version file
  • Loading branch information
danrosen25 authored and rcabell committed Aug 6, 2021
1 parent 0ea0b10 commit 1571e9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trunk/NDHMS/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ cmake_minimum_required (VERSION 2.8)
# read version numbers for wrf_hydro_version and nwm_version from
# ../.version and ../.nwm_version
file (STRINGS "../.version" WRF_HYDRO_VERSION)
if (NWM_META)
if (NWM_META AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.nwm_version)
file (STRINGS "../.nwm_version" NWM_VERSION)
else (NWM_META)
set(NWM_VERSION "none")
endif (NWM_META)
else (NWM_META AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.nwm_version)
set(NWM_VERSION "undefined")
endif (NWM_META AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.nwm_version)

# add the preprocessor definitions for NWM_VERSION and WRF_HYDRO_VERSION
# needed to compile module_version.F
Expand Down

0 comments on commit 1571e9f

Please sign in to comment.