You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
(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:
reason is the build target (i.e. str(Source)[:-4])is the same for all variants
It needs to be something like this:
The text was updated successfully, but these errors were encountered: