diff options
Diffstat (limited to 'install.js')
-rw-r--r-- | install.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/install.js b/install.js index 7b112edd5..26cc0023c 100644 --- a/install.js +++ b/install.js @@ -99,6 +99,26 @@ var installerQuestions = [ else return '-DCMAKE_BUILD_TYPE:STRING=RELEASE'; } }, + { + 'question' : [ + 'Are you using Visual Studio 2008? If you are, you need to answer yes', + 'to this question, otherwise CMake will not function properly.' + ], + 'short' : 'Using Visual Studio 2008?', + 'options' : [ + 'yes', + 'no' + ], + 'default_answer' : 'no', + 'store_answer' : function(answer) { + installerResponses['Visual Studio 2008'] = answer; + return true; + }, + 'cmake_argument' : function() { + if (installerResponses['Visual Studio 2008'] == 'yes') return '-G"Visual Studio 9 2008"'; + else return ''; + } + }, ]; var bannerReplacements = [ @@ -145,6 +165,10 @@ for (x in installerQuestions) { installerResponses['Debug'] = 'msvc'; continue; } + if (thisQuestion.short == 'Using Visual Studio 2008?' && installerResponses['Debug'] != 'msvc') { + installerResponses['Visual Studio 2008'] = 'no'; + continue; + } while (!validResponse) { for (y in thisQuestion.question) { var qLine = thisQuestion.question[y]; |