Skip to content

Commit 03372a3

Browse files
committed
Explicitly link ntdll when building test-gfx on Windows
Following changes introduced by rust-lang/rust#108262
1 parent 0dd4f8d commit 03372a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gfx/tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ target_link_libraries(gfx-test-utils gfx gfx-texture-file Catch2)
3232
add_asset_path_definition(gfx-test-utils PRIVATE GFX_TEST_DATA_PATH ${GFX_TEST_DATA_PATH})
3333

3434
target_link_libraries(test-gfx gfx gfx-test-utils gfx-texture-file gfx-gltf Catch2Main Catch2)
35+
if(WIN32)
36+
target_link_libraries(test-gfx ntdll)
37+
endif()
3538
target_precompile_headers(test-gfx PUBLIC "$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/pch.cpp>")
3639
add_asset_path_definition(test-gfx PUBLIC GFX_TEST_DATA_PATH ${GFX_TEST_DATA_PATH})

0 commit comments

Comments
 (0)