diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index f8979d7ea..1313bfc78 100644 --- a/src/tools/msvc.jam +++ b/src/tools/msvc.jam @@ -1077,6 +1077,11 @@ local rule set-setup-command ( targets * : properties * ) if ! [ on $(targets) return $(.SETUP) ] { local setup-script = [ on $(targets) return $(.SETUP-SCRIPT) ] ; + # If no setup script was given, then we don't need to do anything. + if ! $(setup-script) + { + return ; + } local setup-options = [ on $(targets) return $(.SETUP-OPTIONS) ] ; local key = .setup-command-$(setup-script:E=)-$(setup-options:E=) ; if ! $($(key))