From af35ddc80821d6fff54c5e9ede9dc24653f0253f Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 28 Sep 2016 09:07:42 -0400 Subject: [PATCH] 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. --- Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake b/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake index 9958c2adf..946439dd3 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)