Skip to content

Commit

Permalink
Update NEMS build system to always build with CCPP (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji authored Jan 14, 2021
1 parent b800b34 commit f7fb973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/incmake/component_FV3.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ FV3_BINDIR?=$(ROOTDIR)/FV3/FV3_INSTALL
$(call require_dir,$(FV3_SRCDIR),FV3 source directory)

# Make sure we're setting CCPP=Y if CCPP is enabled:
ifneq (,$(findstring CCPP,$(COMPONENTS)))
ifeq (,$(findstring CCPP=Y,$(FV3_MAKEOPT)))
$(warning Adding CCPP=Y to FV3 make options because CCPP is listed as a component.)
override FV3_MAKEOPT += CCPP=Y
endif
ifeq (,$(findstring PATH_CCPP=,$(FV3_MAKEOPT)))
$(warning Adding PATH_CCPP to FV3 make options because CCPP is listed as a component.)
$(warning Adding PATH_CCPP to FV3 make options.)
override FV3_MAKEOPT += PATH_CCPP="$(CCPP_BINDIR)"
endif
endif

FV3_FULL_OPTS=\
COMP=FV3 \
Expand Down
5 changes: 1 addition & 4 deletions src/incmake/dependencies.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ FMS:
$(call prepend_component,$@)

FV3_DEPS=FMS

ifneq (,$(findstring CCPP=Y,$(COMPONENTS)))
FV3_DEPS += CCPP
endif
FV3_DEPS += CCPP

CCPP:
$(call prepend_component,$@)
Expand Down

0 comments on commit f7fb973

Please sign in to comment.