File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,24 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
19
19
if (-not (Test-Path env:CMAKE_GENERATOR)) {
20
20
$env: CMAKE_GENERATOR = ' Visual Studio 16 2019'
21
21
}
22
+ if (-not (Test-Path env:BITS)) {
23
+ $env: BITS = 64
24
+ }
22
25
if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
23
- $env: CMAKE_GENERATOR_PLATFORM = ' x64'
26
+ if ($env: BITS -eq 32 ) {
27
+ $env: CMAKE_GENERATOR_PLATFORM = ' Win32'
28
+ } else {
29
+ $env: CMAKE_GENERATOR_PLATFORM = ' x64'
30
+ }
24
31
}
25
32
if (-not (Test-Path env:OPENSSL_ROOT_DIR)) {
26
- $env: OPENSSL_ROOT_DIR = ' c:\local\OpenSSL_1_1_1k-Win64 '
33
+ $env: OPENSSL_ROOT_DIR = " c:\local\OpenSSL_1_1_1k-Win ${ env: BITS} "
27
34
}
28
35
if (-not (Test-Path env:BOOST_ROOT)) {
29
- $env: BOOST_ROOT = ' c:\local\boost_1_71_0-Win64 '
36
+ $env: BOOST_ROOT = " c:\local\boost_1_71_0-Win ${ env: BITS} "
30
37
}
31
38
if (-not (Test-Path env:BOOST_LIBRARYDIR)) {
32
- $env: BOOST_LIBRARYDIR = ' c:\local\boost_1_71_0-Win64\lib64 -msvc-14.2'
39
+ $env: BOOST_LIBRARYDIR = " c:\local\boost_1_71_0-Win ${ env: BITS} \lib ${ env: BITS} -msvc-14.2"
33
40
}
34
41
if (-not (Test-Path env:FLEX_BINARY)) {
35
42
$env: FLEX_BINARY = ' C:\ProgramData\chocolatey\bin\win_flex.exe'
You can’t perform that action at this time.
0 commit comments