From 0ed2cb3f69d37d463136dd2b38abae535e742703 Mon Sep 17 00:00:00 2001 From: Soumava Bera Date: Mon, 9 Dec 2024 10:05:35 -0500 Subject: [PATCH] restore cmake --- tests/aws-cpp-sdk-core-tests/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/aws-cpp-sdk-core-tests/CMakeLists.txt b/tests/aws-cpp-sdk-core-tests/CMakeLists.txt index 1b1f9a4ec22..90406667b9a 100644 --- a/tests/aws-cpp-sdk-core-tests/CMakeLists.txt +++ b/tests/aws-cpp-sdk-core-tests/CMakeLists.txt @@ -127,11 +127,11 @@ if (ENABLE_HTTP_CLIENT_TESTING) add_definitions(-DENABLE_HTTP_CLIENT_TESTING) endif() -#if (AUTORUN_UNIT_TESTS) -# ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD -# COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ -# ARGS "--gtest_shuffle" "--gtest_repeat=3" "--gtest_brief=1") -#endif() +if (AUTORUN_UNIT_TESTS) + ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ + ARGS "--gtest_shuffle" "--gtest_repeat=3" "--gtest_brief=1") +endif() if(NOT CMAKE_CROSSCOMPILING) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})