【发布时间】:2017-07-25 02:25:33
【问题描述】:
目录层次如下。
├── prog_1
│ ├── hello.c
│ └── SConscript
└── folder
└── SConstruct
我尝试使用SConstruct在prog_1下构建hello.c,SConstruct如下:
SConscript('../prog_1/SConscript')
prog_1下的SConscript如下:
Program('hello.c')
无论 hello.c 的绝对路径还是相对路径,我都尝试过,但 scons 无法识别路径,它只是忽略了 prog_1 下指定的 SConscript 并完成了构建过程。有没有办法让scons进入这样的其他目录(非SConstruct的子目录)?
【问题讨论】:
-
您能否详细说明“scons 无法识别路径”的含义?您是否从 SCons 收到错误消息?还是只是没有在 prog_1 下构建目标?
-
嗨,bdbaddog。它只是跳过了 prog_1 下的构建目标并完成了构建过程。
标签: scons