summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-01 13:27:02 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-01 13:47:41 (GMT)
commite8954d0b3b6f7b29a00ec0238fc91d84021f0705 (patch)
tree1f4d90b647eaae576c884c9949f5d418bf804bbd
parent5c50b396865c2fbd61cf43c5c4c287113208f32c (diff)
downloadCMake-e8954d0b3b6f7b29a00ec0238fc91d84021f0705.zip
CMake-e8954d0b3b6f7b29a00ec0238fc91d84021f0705.tar.gz
CMake-e8954d0b3b6f7b29a00ec0238fc91d84021f0705.tar.bz2
Tests: Add trailing newlines to generated sources in RunCMake.CPack_* tests
This avoids compiler warnings on stderr while building them.
-rw-r--r--Tests/RunCMake/CPack/DEPENDENCIES.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CPack/DEPENDENCIES.cmake b/Tests/RunCMake/CPack/DEPENDENCIES.cmake
index 0aef925..8a0ba35 100644
--- a/Tests/RunCMake/CPack/DEPENDENCIES.cmake
+++ b/Tests/RunCMake/CPack/DEPENDENCIES.cmake
@@ -1,11 +1,11 @@
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.hpp"
- "int test_lib();")
+ "int test_lib();\n")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp"
- "#include \"test_lib.hpp\"\nint test_lib() {return 0;}")
+ "#include \"test_lib.hpp\"\nint test_lib() {return 0;}\n")
add_library(test_lib SHARED "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
- "#include \"test_lib.hpp\"\nint main() {return test_lib();}")
+ "#include \"test_lib.hpp\"\nint main() {return test_lib();}\n")
add_executable(test_prog "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
target_link_libraries(test_prog test_lib)