Skip to content

Commit 857640d

Browse files
committed
CI (Windows): Fix bzip2.exe path for tests
1 parent f1f9d37 commit 857640d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(WIN32)
1313
file(TO_NATIVE_PATH $<TARGET_FILE:bz2> LIBBZ2)
1414
endif()
1515

16-
file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/bzip2.exe BZIP2)
16+
file(TO_NATIVE_PATH $<TARGET_FILE:bzip2> BZIP2)
1717

1818
else() # Not WIN32
1919
set(LD_LIBRARY_PATH $<TARGET_FILE_DIR:bz2>:$ENV{LD_LIBRARY_PATH})
@@ -70,4 +70,4 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/input/bzip2-testfiles/README.md)
7070
else()
7171
set_property(TEST large PROPERTY ENVIRONMENT ${ENVIRONMENT})
7272
endif()
73-
endif()
73+
endif()

0 commit comments

Comments
 (0)