summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-28 13:07:42 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-28 13:07:42 (GMT)
commitaf35ddc80821d6fff54c5e9ede9dc24653f0253f (patch)
tree84b3120bd906f72fc3e97bf4c723b6b841b8edc0 /Tests/RunCMake
parent8f25f37676cb860348738eff4dfb1c3b8bae0b59 (diff)
downloadCMake-af35ddc80821d6fff54c5e9ede9dc24653f0253f.zip
CMake-af35ddc80821d6fff54c5e9ede9dc24653f0253f.tar.gz
CMake-af35ddc80821d6fff54c5e9ede9dc24653f0253f.tar.bz2
Tests: Add newline to RunCMake.CPack_RPM SOURCE_PACKAGE case
The `main.cpp` that this test generates needs a newline so that compilers do not warn about a missing newline. Otherwise the warning causes RunCMake infrastructure to detect unexpected output.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake b/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake
index 9958c2a..946439d 100644
--- a/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake
+++ b/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake
@@ -1,5 +1,5 @@
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
- "int main() {return 0;}")
+ "int main() {return 0;}\n")
add_executable(test_prog "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
install(TARGETS test_prog DESTINATION foo COMPONENT applications)