Skip to content

Commit

Permalink
[oct23av] in ggtt.mad cudacpp.mk, add override on top of ':=' to ensu…
Browse files Browse the repository at this point in the history
…re that CUDACPP_MAKEFILE is an internal variable that cannot be set externally madgraph5#787

make -f cudacpp.mk cleanall
  CUDACPP_MAKEFILE='cudacpp.mk'
  CUDACPP_MAKEFILE='cudacpp.mk'
  cudacpp.mk:43: *** exit.  Stop.

This is now insensitive to variables coming from outside

make -f cudacpp.mk cleanall CUDACPP_MAKEFILE=pippo
  CUDACPP_MAKEFILE='cudacpp.mk'
  CUDACPP_MAKEFILE='cudacpp.mk'
  cudacpp.mk:43: *** exit.  Stop.
  • Loading branch information
valassi committed Nov 3, 2023
1 parent 113d332 commit 784f37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epochX/cudacpp/gg_tt.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#=== NB: different names (e.g. cudacpp.mk and cudacpp_src.mk) are used in the Subprocess and src directories
#=== NB: use ':=' to ensure that the value is not modified further down after including make_opts

CUDACPP_MAKEFILE := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
override CUDACPP_MAKEFILE := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
$(info CUDACPP_MAKEFILE='$(CUDACPP_MAKEFILE)')

CUDACPP_SRC_MAKEFILE = cudacpp_src.mk
Expand Down

0 comments on commit 784f37c

Please sign in to comment.