mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 23:00:07 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user