Skip to content

Commit

Permalink
Fix build break related to fetching GTest sources (#57)
Browse files Browse the repository at this point in the history
* Fix build break related to fetching GTest sources

* Change files
  • Loading branch information
vmoroz authored Feb 10, 2022
1 parent 35848c6 commit 0fcd615
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Fix build break related to fetching GTest sources",
"packageName": "@microsoft/mso",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2022-02-10T01:01:10.496Z"
}
5 changes: 1 addition & 4 deletions external/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ if(MSO_ENABLE_UNIT_TESTS)

FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 7eae8de0da5774fa08ce350d9d470901b76b2834
GIT_SHALLOW 1
GIT_PROGRESS 1
URL https://github.com/google/googletest/archive/06519cedc3159de8b36a504766ad6b7966555f10.zip
)

FetchContent_GetProperties(googletest)
Expand Down
6 changes: 2 additions & 4 deletions libs/motifCpp/include/motifCpp/motifCppTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ inline void AreEqualAt(
GTEST_ASSERT_AT_(
file,
line,
::testing::internal::EqHelper::Compare(
expectedExpr, actualExpr, expected, actual),
::testing::internal::EqHelper::Compare(expectedExpr, actualExpr, expected, actual),
GTEST_FATAL_FAILURE_AT_)
<< FormatCustomMsg(line, message);
}
Expand All @@ -125,8 +124,7 @@ void AreEqualAt(
GTEST_ASSERT_AT_(
file,
line,
::testing::internal::EqHelper::Compare(
expectedExpr, actualExpr, expected, actual),
::testing::internal::EqHelper::Compare(expectedExpr, actualExpr, expected, actual),
GTEST_FATAL_FAILURE_AT_)
<< FormatCustomMsg(line, message);
}
Expand Down
4 changes: 2 additions & 2 deletions tools/cmake/liblet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(WIN_TARGET_ARCH $ENV{VSCMD_ARG_TGT_ARCH})
if(${WIN_TARGET_ARCH} STREQUAL "")
message(FATAL_ERROR "Error: environment variable VSCMD_ARG_TGT_ARCH is not set (required for Windows builds). Are you using a Visual Studio Tools Command Prompt?")
if("${WIN_TARGET_ARCH}" STREQUAL "")
set(WIN_TARGET_ARCH "x64")
endif()
endif()

Expand Down

0 comments on commit 0fcd615

Please sign in to comment.