-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
(Minor documentation issue)
The "Sample sconscript file" in the README.md doesn't work, it gives an error like this in any build with more than one variant:
cuppa: __init__: [error] Cuppa terminated by exception [UserError: Two environments with different actions were specified for the same target: /home/dmsdev/repo/timm/traxFix/cuppa/helloWorld/src/Main
reason is the build target (i.e. str(Source)[:-4])is the same for all variants
# Build all *.cpp source files as executables
for Source in env.GlobFiles('*.cpp'):
env.Build( str(Source)[:-4], Source )
It needs to be something like this:
# Build all *.cpp source files as executables
for Source in env.GlobFiles('*.cpp'):
env.Build(env.TargetFrom(Source), Source)
Reactions are currently unavailable