fix unittests link on mingw64
Some checks failed
BlockStorage/repertory_linux_builds/pipeline/head There was a failure building this commit
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good

This commit is contained in:
2024-01-27 12:34:43 -06:00
parent 21bcd0780c
commit 33a0b4b295
2 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,11 @@ if (REPERTORY_ENABLE_TESTING)
if (MINGW)
find_package(GTest REQUIRED)
set(GTEST_LIBRARIES
/mingw64/lib/libgmock.a
/mingw64/lib/libgtest.a
/mingw64/lib/libgtest_main.a
)
else()
set(GTEST_PROJECT_NAME gtest_${GTEST_VERSION})
set(GTEST_BUILD_ROOT ${EXTERNAL_BUILD_ROOT}/builds/${GTEST_PROJECT_NAME})