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.
This commit is contained in:
parent
8f25f37676
commit
af35ddc808
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue