Skip to content

Commit bc23e6a

Browse files
authored
[CI] Misc build scripts cleanup (#2232)
1 parent b3d547c commit bc23e6a

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,6 @@ set(OTELCPP_PROTO_PATH
214214
CACHE PATH "Path to opentelemetry-proto")
215215

216216
if(WIN32)
217-
if(BUILD_TESTING)
218-
if(MSVC)
219-
# Warning as error: warning STL4036: <ciso646> is removed in C++20
220-
add_compile_options(/wd4996)
221-
endif()
222-
endif()
223217
option(WITH_ETW "Whether to include the ETW Exporter in the SDK" ON)
224218
endif(WIN32)
225219

ci/setup_cmake.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,19 @@ if [ "x$CMAKE_VERSION" = "x" ]; then
1313
export CMAKE_VERSION=3.15.2
1414
fi
1515

16-
# This variable not set on CI pipeline for only legacy environment(GCC 4.8).
17-
# With 1.13.0 version, C++14 must be set which does not supported by legacy environment anymore.
18-
# Also with this version, release version path needs to be adapted.
1916
if [ -z "${GOOGLETEST_VERSION}" ]; then
20-
# By default, GoogleTest version set the following version.
17+
# Version by default. Requires C++14.
2118
export GOOGLETEST_VERSION=1.13.0
2219
fi
2320

2421
OLD_GOOGLETEST_VERSION_REGEXP="^1\.([0-9]|10|11|12)(\..*)?$"
2522

26-
# If GoogleTest version less than ${GOOGLETEST_LATEST_VERSION}
27-
# Else otherwise
2823
if [[ ${GOOGLETEST_VERSION} =~ ${OLD_GOOGLETEST_VERSION_REGEXP} ]]; then
24+
# Old (up to 1.12.x included) download URL format.
2925
GOOGLETEST_VERSION_PATH="release-${GOOGLETEST_VERSION}"
3026
GOOGLETEST_FOLDER_PATH="googletest-release-${GOOGLETEST_VERSION}"
3127
else
28+
# New (since 1.13.0) download URL format.
3229
GOOGLETEST_VERSION_PATH="v${GOOGLETEST_VERSION}"
3330
GOOGLETEST_FOLDER_PATH="googletest-${GOOGLETEST_VERSION}"
3431
fi

0 commit comments

Comments
 (0)