Skip to content

Commit e48a8f8

Browse files
swahtzmatthewdcong
authored andcommitted
Adding /bigobj to TestNanoVDB.cu compilation options to fix Windows build failures
* Adding /bigobj to TestNanoVDB.cu compilation options to fix Windows build failure --------- Signed-off-by: Jonathan Swartz <[email protected]> Signed-off-by: Matthew Cong <[email protected]>
1 parent b91cb65 commit e48a8f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nanovdb/nanovdb/unittest/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ endif()
3333

3434
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/data")
3535

36+
if (MSVC)
37+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
38+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler /bigobj")
39+
endif()
40+
3641
# -----------------------------------------------------------------------------
3742

3843
add_executable(nanovdb_test_nanovdb "TestNanoVDB.cc")

0 commit comments

Comments
 (0)