Skip to content

Commit beb1d0b

Browse files
committed
Turn off USE_EXPLICIT_INSTANTIATION on Windows by default
Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
1 parent 9153c12 commit beb1d0b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,14 @@ option(OPENVDB_ENABLE_UNINSTALL "Adds a CMake uninstall target." ON)
141141
option(USE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." OFF)
142142
cmake_dependent_option(USE_PKGCONFIG "Use pkg-config to search for dependent libraries." ON "NOT WIN32" OFF)
143143

144-
option(USE_EXPLICIT_INSTANTIATION "Use explicit instantiation for all supported classes and methods against a
145-
pre-defined list of OpenVDB trees. This makes the core library larger and slower to compile, but speeds up
146-
the compilation of all dependent code by bypassing the expensive template instantation." ON)
144+
# Disable this on Windows due to linker OOM issues:
145+
# LNK1248: image size (XXX) exceeds maximum allowable size (FFFFFFFF)
146+
# https://github.com/AcademySoftwareFoundation/openvdb/issues/1718
147+
# https://github.com/AcademySoftwareFoundation/openvdb/issues/1624
148+
cmake_dependent_option(USE_EXPLICIT_INSTANTIATION "Use explicit instantiation for all supported classes
149+
and methods against a pre-defined list of OpenVDB trees. This makes the core library larger and slower
150+
to compile, but speeds up the compilation of all dependent code by bypassing the expensive template
151+
instantation." ON "NOT WIN32" OFF)
147152

148153
set(SYSTEM_LIBRARY_PATHS "" CACHE STRING [=[
149154
A global list of library paths to additionally use into when searching for dependencies.]=])
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Build:
2+
- USE_EXPLICIT_INSTANTIATION is now disabled on Windows by default due to
3+
OOM linker issues.

0 commit comments

Comments
 (0)