Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ParaView
ParaView-Superbuild
Commits
9f368aaf
Commit
9f368aaf
authored
Mar 26, 2018
by
Utkarsh Ayachit
⛰
Browse files
vs2015: fixes to silo build.
parent
3a4db77b
Changes
2
Hide whitespace changes
Inline
Side-by-side
projects/win32/patches/silo-snprintf.patch
0 → 100644
View file @
9f368aaf
diff --git a/src/silo/silo_win32_compatibility.h b/src/silo/silo_win32_compatibility.h
index 28bf300..df1d214 100644
--- a/src/silo/silo_win32_compatibility.h
+++ b/src/silo/silo_win32_compatibility.h
@@ -12,7 +12,9 @@
#define pclose _pclose
#define popen _popen
#define read _read
-#define snprintf _snprintf
+#if _MSC_VER<1900 /* VS2015 onwards, snprintf is supported*/
+# define snprintf _snprintf
+#endif
#define stat _stat
#define write _write
projects/win32/silo.cmake
View file @
9f368aaf
...
...
@@ -54,6 +54,8 @@ superbuild_apply_patch(silo no-perl
"Remove the need for Perl during the build"
)
superbuild_apply_patch
(
silo hdf5-deplibs
"Link to HDF5 properly"
)
superbuild_apply_patch
(
silo snprintf
"Remove snprint redefinition for VS201 and newer"
)
superbuild_add_extra_cmake_args
(
-DSILO_INCLUDE_DIR:PATH=<INSTALL_DIR>/include
...
...
Utkarsh Ayachit
⛰
@utkarsh.ayachit
mentioned in commit
1033d509
·
Apr 19, 2018
mentioned in commit
1033d509
mentioned in commit 1033d509efa96d03fa3b59e89daa0ac24f6eabf1
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment