summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake')
-rw-r--r--Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake b/Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake
new file mode 100644
index 000000000..9bd2ffa44
--- /dev/null
+++ b/Tests/RunCMake/File_Generate/NewLineStyle-NoArg.cmake
@@ -0,0 +1,7 @@
+file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
+
+file(GENERATE
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
+ CONTENT "int main() { return 0; }\n"
+ NEWLINE_STYLE
+ )