diff options
author | Sylvain Joubert <joubert.sy@gmail.com> | 2017-07-04 10:00:02 (GMT) |
---|---|---|
committer | Sylvain Joubert <joubert.sy@gmail.com> | 2017-07-04 10:00:02 (GMT) |
commit | 58f47448210bf3fd3121bf91f74eb893ba9d034c (patch) | |
tree | 9b4a81430dda42f630fb03351332b4551aafde24 /Tests/Complex/VarTests.cmake | |
parent | 74112c8da16ea5f2a4940d196d178da684626f92 (diff) | |
download | CMake-58f47448210bf3fd3121bf91f74eb893ba9d034c.zip CMake-58f47448210bf3fd3121bf91f74eb893ba9d034c.tar.gz CMake-58f47448210bf3fd3121bf91f74eb893ba9d034c.tar.bz2 |
configure_file: Add support for indented cmakedefine
Optional spaces and/or tabs are now understood between the '#' character
and the 'cmakedefine'/'cmakedefine01' words. This indentation is
preserved in the output lines.
Fixes: #13037
Diffstat (limited to 'Tests/Complex/VarTests.cmake')
-rw-r--r-- | Tests/Complex/VarTests.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/Complex/VarTests.cmake b/Tests/Complex/VarTests.cmake index 8be59be..9761986 100644 --- a/Tests/Complex/VarTests.cmake +++ b/Tests/Complex/VarTests.cmake @@ -2,6 +2,7 @@ # Test SET # set (ZERO_VAR 0) +set (ZERO_VAR_AND_INDENTED 0) set (ZERO_VAR2 0) if(ZERO_VAR) @@ -11,6 +12,7 @@ else() endif() set(ONE_VAR 1) +set(ONE_VAR_AND_INDENTED 1) set(ONE_VAR2 1) set(STRING_VAR "CMake is great" CACHE STRING "test a cache variable") |