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.
This commit is contained in:
Bill Hoffman 2010-09-29 14:46:45 -04:00
parent da5c8953b7
commit 5253206798
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ endif()
file(WRITE
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
"int main() { return 0; }"
"int main() { return 0; }
"
)
add_executable(