mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
meson: move generation of cmake config file to cmake option flag
This commit is contained in:
parent
2fe86683a6
commit
cebc6c1281
@ -52,7 +52,7 @@ if get_option('test') == true
|
||||
endif
|
||||
|
||||
|
||||
if host_machine.system() != 'windows'
|
||||
if get_option('cmake') == true and host_machine.system() != 'windows'
|
||||
cmake_bin = find_program('cmake', required: false)
|
||||
if cmake_bin.found()
|
||||
cmake = import('cmake')
|
||||
|
@ -33,8 +33,10 @@ option('example',
|
||||
value: true,
|
||||
description: 'Enable building examples')
|
||||
|
||||
option('text',
|
||||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Enable text module')
|
||||
option('cmake',
|
||||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Enable Generating CMake config files')
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user