Skip to content

Commit

Permalink
playing around with vcpkg, got it working but all tests fail (most li…
Browse files Browse the repository at this point in the history
…kely due to legacy gmock)
  • Loading branch information
bachittle committed Jan 3, 2023
1 parent d9e8473 commit 070a675
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,14 @@ function(install_windows_deps)
set(ENV{ARCH} ${ARCH})
execute_process(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/setup-buildtools.cmd)
set(CMAKE_TOOLCHAIN_FILE
# set(CMAKE_TOOLCHAIN_FILE
# ${CMAKE_CURRENT_SOURCE_DIR}/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
# PARENT_SCOPE)
include(
${CMAKE_CURRENT_SOURCE_DIR}/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
PARENT_SCOPE)
PARENT_SCOPE
)

endfunction()

if(WITH_JAEGER)
Expand Down
2 changes: 1 addition & 1 deletion test_common/src/http/client/nosend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(${BUILD_TESTING})
endif()

target_link_libraries(
opentelemetry_http_client_nosend ${GTEST_BOTH_LIBRARIES} ${GMOCK_LIB}
opentelemetry_http_client_nosend ${GTEST_BOTH_LIBRARIES}
opentelemetry_ext opentelemetry_test_common)

endif()
1 change: 1 addition & 0 deletions tools/setup-buildtools.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if %ERRORLEVEL% == 1 (
popd
) else (
echo Using existing vcpkg installation...
set "VCPKG_ROOT=%~dp0\vcpkg"
)

REM Install dependencies
Expand Down

0 comments on commit 070a675

Please sign in to comment.