Skip to content

Commit cc12696

Browse files
authored
Merge pull request #1075 from sideeffects/send_upstream_defineguard
Guard the cmakedefines in case systems have -D options
2 parents bed2a37 + a7126e9 commit cc12696

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openvdb/openvdb/version.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,19 @@
117117
#endif
118118

119119
/* Denotes whether VDB was built with IMath Half support */
120+
#ifndef OPENVDB_USE_IMATH_HALF
120121
#cmakedefine OPENVDB_USE_IMATH_HALF
122+
#endif
121123

122124
/* Denotes whether VDB was built with Blosc support */
125+
#ifndef OPENVDB_USE_BLOSC
123126
#cmakedefine OPENVDB_USE_BLOSC
127+
#endif
124128

125129
/* Denotes whether VDB was built with ZLIB support */
130+
#ifndef OPENVDB_USE_ZLIB
126131
#cmakedefine OPENVDB_USE_ZLIB
132+
#endif
127133

128134

129135
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)