From dc17a8e204ff4280c8827c4d20384366092fcfb7 Mon Sep 17 00:00:00 2001 From: Anthony Islas Date: Thu, 12 Jun 2025 12:23:13 -0700 Subject: [PATCH] Add default values to controllable cmake options The default options are useful when completely bypassing the configuration prompts. Without these default options certain comparision operators are left evaluating blank expansions that would otherwise lead to malformed syntax --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f473679..2e252cb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,11 @@ include( wrf_case_setup ) wrf_get_version( ${PROJECT_SOURCE_DIR}/README ) # Disable WRF-specifics entirely -set( USE_WRF ON CACHE BOOL "USE_WRF" ) +set( USE_WRF ON CACHE BOOL "USE_WRF" ) +set( USE_DOUBLE OFF CACHE BOOL "USE_DOUBLE" ) +set( USE_MPI OFF CACHE BOOL "USE_MPI" ) +set( BUILD_EXTERNALS OFF CACHE BOOL "BUILD_EXTERNALS" ) + ################################################################################ ##