mirror of https://github.com/OpenTTD/OpenTTD
Fix: CMake option values should be ON/OFF
parent
1e01982a2e
commit
0b86bd8b03
|
@ -91,7 +91,7 @@ jobs:
|
||||||
VcpkgTargetTriplet: $(VcpkgTargetTriplet)
|
VcpkgTargetTriplet: $(VcpkgTargetTriplet)
|
||||||
BuildConfiguration: 'RelWithDebInfo'
|
BuildConfiguration: 'RelWithDebInfo'
|
||||||
${{ if eq(parameters.IsStableRelease, true) }}:
|
${{ if eq(parameters.IsStableRelease, true) }}:
|
||||||
OptionUseNSIS: "YES"
|
OptionUseNSIS: "ON"
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: 'Create bundles'
|
displayName: 'Create bundles'
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -2,7 +2,7 @@ parameters:
|
||||||
BuildArch: ''
|
BuildArch: ''
|
||||||
VcpkgTargetTriplet: ''
|
VcpkgTargetTriplet: ''
|
||||||
BuildConfiguration: ''
|
BuildConfiguration: ''
|
||||||
OptionUseNSIS: 'NO'
|
OptionUseNSIS: 'OFF'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
|
|
|
@ -41,16 +41,16 @@ endfunction()
|
||||||
#
|
#
|
||||||
function(set_options)
|
function(set_options)
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
set(DEFAULT_OPTION_INSTALL_FHS YES)
|
set(DEFAULT_OPTION_INSTALL_FHS ON)
|
||||||
else (UNIX AND NOT APPLE)
|
else (UNIX AND NOT APPLE)
|
||||||
set(DEFAULT_OPTION_INSTALL_FHS NO)
|
set(DEFAULT_OPTION_INSTALL_FHS OFF)
|
||||||
endif (UNIX AND NOT APPLE)
|
endif (UNIX AND NOT APPLE)
|
||||||
|
|
||||||
option(OPTION_DEDICATED "Build dedicated server only (no GUI)" NO)
|
option(OPTION_DEDICATED "Build dedicated server only (no GUI)" OFF)
|
||||||
option(OPTION_INSTALL_FHS "Install with Filesstem Hierarchy Standard folders" ${DEFAULT_OPTION_INSTALL_FHS})
|
option(OPTION_INSTALL_FHS "Install with Filesstem Hierarchy Standard folders" ${DEFAULT_OPTION_INSTALL_FHS})
|
||||||
option(OPTION_USE_ASSERTS "Use assertions; leave enabled for nightlies, betas, and RCs" YES)
|
option(OPTION_USE_ASSERTS "Use assertions; leave enabled for nightlies, betas, and RCs" ON)
|
||||||
option(OPTION_USE_THREADS "Use threads" YES)
|
option(OPTION_USE_THREADS "Use threads" ON)
|
||||||
option(OPTION_USE_NSIS "Use NSIS to create windows installer; enable only for stable releases" NO)
|
option(OPTION_USE_NSIS "Use NSIS to create windows installer; enable only for stable releases" OFF)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Show the values of the generic options.
|
# Show the values of the generic options.
|
||||||
|
|
Loading…
Reference in New Issue