Skip to content

Commit

Permalink
[SCons] Fix duplicate target error when building MSI
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 15, 2023
1 parent 10a3913 commit 952e465
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SConstruct
Expand Up @@ -2117,7 +2117,10 @@ else:
locations = ["libdir", "bindir", "python_bindir", "incdir", "incroot",
"matlab_dir", "datadir", "sampledir", "docdir", "mandir"]
for loc in locations:
env[f"inst_{loc}"] = env[f"ct_{loc}"].replace(env["ct_installroot"], instRoot)
if env["prefix"] == ".":
env[f"inst_{loc}"] = (Path(instRoot) / env[f"ct_{loc}"]).as_posix()
else:
env[f"inst_{loc}"] = env[f"ct_{loc}"].replace(env["ct_installroot"], instRoot)

if env['use_rpath_linkage']:
env.Append(RPATH=env['ct_libdir'])
Expand Down

0 comments on commit 952e465

Please sign in to comment.