mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Add instructions for using VS' non-.sln support
This commit is contained in:
parent
4ffa116a37
commit
c6e0946162
@ -971,6 +971,20 @@ if [ -z $VERBOSE ]; then
|
||||
echo "You may find options to launch a Development/Native Tools/Cross Tools shell in your start menu or Visual Studio."
|
||||
echo "https://github.com/microsoft/vswhere/wiki/Start-Developer-Command-Prompt should help with activation in an existing shell."
|
||||
echo "In Bash, sourcing this script with the same arguments should work."
|
||||
if [ $(uname -m) == 'x86_64' ]; then
|
||||
if [ $BITS -eq 64 ]; then
|
||||
inheritEnvironments=msvc_x64_x64
|
||||
else
|
||||
inheritEnvironments=msvc_x64
|
||||
fi
|
||||
else
|
||||
if [ $BITS -eq 64 ]; then
|
||||
inheritEnvironments=msvc_x86_x64
|
||||
else
|
||||
inheritEnvironments=msvc_x86
|
||||
fi
|
||||
fi
|
||||
echo "In Visual Studio 15.3 (2017 Update 3) or later, try setting '\"inheritEnvironments\": [ \"$inheritEnvironments\" ]' in CMakeSettings.json"
|
||||
# TODO command line option to activate in current bash shell when sourced without doing everything else as it's such a hassle.
|
||||
# TODO alternatively, create scripts for common shells (CMD, PowerShell, Bash) in the build directory that activate MSVC with the right settings for the build.
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user