summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-09-29 18:46:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-09-29 18:46:45 (GMT)
commit525320679887d7df4bad5e619ceafdf2bfe891c5 (patch)
tree0312e058fad8b980079e6751c66bcc8de3a741af /Tests
parentda5c8953b72028cfdf9090857b7012cad04e4bfa (diff)
downloadCMake-525320679887d7df4bad5e619ceafdf2bfe891c5.zip
CMake-525320679887d7df4bad5e619ceafdf2bfe891c5.tar.gz
CMake-525320679887d7df4bad5e619ceafdf2bfe891c5.tar.bz2
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')
-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 7206f1d..8095a1c 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(