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/ComplexOneConfig/cmTestConfigure.h.in | |
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/ComplexOneConfig/cmTestConfigure.h.in')
-rw-r--r-- | Tests/ComplexOneConfig/cmTestConfigure.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/cmTestConfigure.h.in b/Tests/ComplexOneConfig/cmTestConfigure.h.in index d7424b1..72317bc 100644 --- a/Tests/ComplexOneConfig/cmTestConfigure.h.in +++ b/Tests/ComplexOneConfig/cmTestConfigure.h.in @@ -1,8 +1,10 @@ // Test SET, VARIABLE_REQUIRES #cmakedefine ONE_VAR +# cmakedefine ONE_VAR_AND_INDENTED #cmakedefine ONE_VAR_IS_DEFINED #cmakedefine ZERO_VAR +# cmakedefine ZERO_VAR_AND_INDENTED #define STRING_VAR "${STRING_VAR}" @@ -32,6 +34,8 @@ #cmakedefine01 SHOULD_BE_ZERO #cmakedefine01 SHOULD_BE_ONE +# cmakedefine01 SHOULD_BE_ZERO_AND_INDENTED +# cmakedefine01 SHOULD_BE_ONE_AND_INDENTED // Needed to check for files #define BINARY_DIR "${Complex_BINARY_DIR}" |