summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBruno Pedrosa <brupelo@gmail.com>2016-10-26 18:58:11 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-27 18:07:18 (GMT)
commit95805d725d49af665c2254f97effbe8b812239ea (patch)
tree80813318e704a4a0b569a3cc1ef85564f8b72443 /Help/variable
parent9d203c0051bbec48dfbee90940e6faff87a2bdeb (diff)
downloadCMake-95805d725d49af665c2254f97effbe8b812239ea.zip
CMake-95805d725d49af665c2254f97effbe8b812239ea.tar.gz
CMake-95805d725d49af665c2254f97effbe8b812239ea.tar.bz2
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
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst b/Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst
new file mode 100644
index 0000000..02c8663
--- /dev/null
+++ b/Help/variable/CMAKE_SUBLIME_TEXT_2_ENV_SETTINGS.rst
@@ -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"
+ )