Skip to content

Commit

Permalink
Add workDir in front of sourceDir only if it isn't there already
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjsherman committed Jan 3, 2018
1 parent 910595a commit 811073c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/CMake.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def call(body) {

// Standardize directory layout
def buildDir = (body.buildDir ?: workDir + '/build' + (body.label ? '/' + body.label : ''))
def sourceDir = (body.sourceDir ? workDir + '/' + body.sourceDir : workDir)
def sourceDir = (body.sourceDir ? ((body.sourceDir.indexOf(workDir) == 0 ? '' : workDir + '/') + body.sourceDir) : workDir)
def installDir = (body.installDir ?: workDir + '/dist' + (body.label ? '/'+body.label : ''))

// Default values
Expand Down

0 comments on commit 811073c

Please sign in to comment.