Skip to content

Commit

Permalink
Explicitly link ntdll when building test-gfx on Windows
Browse files Browse the repository at this point in the history
Following changes introduced by rust-lang/rust#108262
  • Loading branch information
Kryptos-FR committed Mar 23, 2023
1 parent 0dd4f8d commit 03372a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gfx/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ target_link_libraries(gfx-test-utils gfx gfx-texture-file Catch2)
add_asset_path_definition(gfx-test-utils PRIVATE GFX_TEST_DATA_PATH ${GFX_TEST_DATA_PATH})

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

0 comments on commit 03372a3

Please sign in to comment.