Skip to content

Commit

Permalink
[Scons] prevent installation to source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and Ingmar Schoegl committed Nov 4, 2019
1 parent ce47733 commit 9b620ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,11 @@ print()
# *** Configure system-specific properties ***
# ********************************************

# Prevent setting prefix for Cantera installation to source directory
if os.path.abspath(env['prefix']) == Dir('.').abspath:
print('ERROR: cannot install Cantera into source directory.')
exit(1)

# Copy in external environment variables
if env['env_vars'] == 'all':
env['ENV'].update(os.environ)
Expand Down

0 comments on commit 9b620ce

Please sign in to comment.