diff options
author | Andrey Vostrikov <andrey.vostrikov@cogentembedded.com> | 2022-12-02 09:46:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-12-02 14:20:09 (GMT) |
commit | 9273b8f42113950f9f87d3e5e3685b8fb4071077 (patch) | |
tree | c2a66f93ae14f1bc050487b51f8972b1fbede7fd /Modules | |
parent | 0b6bfb1ed86c1f1bd5f36a8f21c11f9eae5b7949 (diff) | |
download | CMake-9273b8f42113950f9f87d3e5e3685b8fb4071077.zip CMake-9273b8f42113950f9f87d3e5e3685b8fb4071077.tar.gz CMake-9273b8f42113950f9f87d3e5e3685b8fb4071077.tar.bz2 |
CheckSymbolExists: Restore newline at end of test source
Refactoring in commit db76876db5 (Modules: Use new SOURCES_FROM_*
try_compile (1/2), 2022-09-26, v3.25.0-rc1~74^2~1) accidentally dropped
the final newline of the test source, which was previously provided by
the input to `configure_file`. The C standard requires a newline at the
end of file, so add one explicitly.
Signed-off-by: Andrey Vostrikov <andrey.vostrikov@cogentembedded.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CheckSymbolExists.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake index 0d44d56..722d50f 100644 --- a/Modules/CheckSymbolExists.cmake +++ b/Modules/CheckSymbolExists.cmake @@ -136,7 +136,7 @@ int main(int argc, char** argv) ${_CSE_CHECK_NON_MACRO}") endif() string(APPEND _CSE_SOURCE " -}") +}\n") unset(_CSE_CHECK_NON_MACRO) if(NOT CMAKE_REQUIRED_QUIET) |