Skip to content

Commit c4922be

Browse files
committed
Remove unit test build/run on windows dynamic loader
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 214380f commit c4922be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ add_executable(
55
tests
66
loader_api.cpp
77
loader_validation_layer.cpp
8-
driver_ordering_unit_tests.cpp
98
driver_ordering_helper_tests.cpp
109
)
1110

11+
# Only include driver_ordering_unit_tests for static builds or non-Windows platforms
12+
# as it requires internal loader symbols that are not exported in Windows DLLs
13+
if(BUILD_STATIC OR NOT WIN32)
14+
target_sources(tests PRIVATE driver_ordering_unit_tests.cpp)
15+
endif()
16+
1217
# For static builds, we need to include the loader source files directly
1318
# since they are not built into the library when BUILD_STATIC=1
1419
if(BUILD_STATIC)

0 commit comments

Comments
 (0)