mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Sublime: Add option to specify env vars for the .sublime-project
Create a `CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS` variable to control addition of env vars in the `.sublime-project`. Closes: #16387
This commit is contained in:
25
Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst
Normal file
25
Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst
Normal file
@@ -0,0 +1,25 @@
|
||||
CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS
|
||||
---------------------------------
|
||||
|
||||
This variable contains a list of env vars as a list of tokens with the
|
||||
syntax ``var=value``.
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
set(CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS
|
||||
"FOO=FOO1\;FOO2\;FOON"
|
||||
"BAR=BAR1\;BAR2\;BARN"
|
||||
"BAZ=BAZ1\;BAZ2\;BAZN"
|
||||
"FOOBAR=FOOBAR1\;FOOBAR2\;FOOBARN"
|
||||
"VALID="
|
||||
)
|
||||
|
||||
In case of malformed variables CMake will fail:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
set(CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS
|
||||
"THIS_IS_NOT_VALID"
|
||||
)
|
||||
Reference in New Issue
Block a user