Skip to content

Commit 04c9d23

Browse files
committed
Fix incorrect paths for test DLL copying
1 parent 65c19ec commit 04c9d23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/eclipsa_build_tests.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ function(eclipsa_build_tests)
3838
# Move the dlls required for the unit tests as well
3939
# This can be done in the post build, since we'll run the tests after the build is complete
4040
set(ZMQ_DLL "${CMAKE_BINARY_DIR}/_deps/zeromq-build/bin/${BUILD_LIB_DIR}/libzmq-v143-mt$<$<CONFIG:Debug>:-gd>-4_3_6.dll")
41-
set(GTEST_DLL "${CMAKE_SOURCE_DIR}/build/bin/${BUILD_LIB_DIR}/gtest.dll")
42-
set(GTEST_MAIN_DLL "${CMAKE_SOURCE_DIR}/build/bin/${BUILD_LIB_DIR}/gtest_main.dll")
41+
set(GTEST_DLL "${CMAKE_BINARY_DIR}/bin/${BUILD_LIB_DIR}/gtest.dll")
42+
set(GTEST_MAIN_DLL "${CMAKE_BINARY_DIR}/bin/${BUILD_LIB_DIR}/gtest_main.dll")
4343
set(CRYPTOMD_DLL "${CMAKE_SOURCE_DIR}/third_party/gpac/lib/Windows/${CMAKE_BUILD_TYPE}/libcryptoMD.dll")
4444
set(LIBSSLMD_DLL "${CMAKE_SOURCE_DIR}/third_party/gpac/lib/Windows/${CMAKE_BUILD_TYPE}/libsslMD.dll")
4545

46-
set(TEST_DIR "${CMAKE_SOURCE_DIR}/build/${BUILD_LIB_DIR}")
46+
set(TEST_DIR "${CMAKE_BINARY_DIR}/${BUILD_LIB_DIR}")
4747
add_custom_command(TARGET eclipsa_tests POST_BUILD
4848
COMMAND ${CMAKE_COMMAND} -E make_directory "${TEST_DIR}"
4949
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${GTEST_DLL} "${TEST_DIR}/"

0 commit comments

Comments
 (0)