Skip to content

Commit 2126cd6

Browse files
committed
try to fix msvc build.
1 parent 14a0d79 commit 2126cd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ add_executable(util_test)
6969
target_sources(util_test PRIVATE formatter_test.cc config_test.cc visit_type_test.cc
7070
logger_test.cc)
7171
target_link_libraries(util_test PRIVATE iceberg_static GTest::gtest_main GTest::gmock)
72+
if(MSVC)
73+
target_compile_options(util_test PRIVATE /Zc:preprocessor)
74+
endif()
7275
add_test(NAME util_test COMMAND util_test)
7376

7477
if(ICEBERG_BUILD_BUNDLE)

0 commit comments

Comments
 (0)