summaryrefslogtreecommitdiff
path: root/Tests/CheckCompilerRelatedVariables
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-09-29 14:46:45 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2010-09-29 14:46:45 -0400
commit525320679887d7df4bad5e619ceafdf2bfe891c5 (patch)
tree0312e058fad8b980079e6751c66bcc8de3a741af /Tests/CheckCompilerRelatedVariables
parentda5c8953b72028cfdf9090857b7012cad04e4bfa (diff)
downloadcmake-525320679887d7df4bad5e619ceafdf2bfe891c5.tar.gz
Add a new line to the end of the generated main.cxx for the hpux compiler.
Some HPUX compilers give this error: Error 690: "/home/cport/Dashboards/My Tests/CMake-build/Tests/CheckCompilerRelatedVariables/main.cxx", line 1 # Nonempty source files must end with a newline that is not preceded by a backslash.
Diffstat (limited to 'Tests/CheckCompilerRelatedVariables')
-rw-r--r--Tests/CheckCompilerRelatedVariables/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CheckCompilerRelatedVariables/CMakeLists.txt b/Tests/CheckCompilerRelatedVariables/CMakeLists.txt
index 7206f1daf2..8095a1cf19 100644
--- a/Tests/CheckCompilerRelatedVariables/CMakeLists.txt
+++ b/Tests/CheckCompilerRelatedVariables/CMakeLists.txt
@@ -76,7 +76,8 @@ endif()
file(WRITE
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
- "int main() { return 0; }"
+ "int main() { return 0; }
+"
)
add_executable(