Commit af35ddc8 authored by Brad King's avatar Brad King
Browse files

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.
parent 8f25f376
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp" 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") add_executable(test_prog "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
install(TARGETS test_prog DESTINATION foo COMPONENT applications) install(TARGETS test_prog DESTINATION foo COMPONENT applications)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment