From 78efc934dbdc3b821d46b1bc3ae6ba0d8a2dc814 Mon Sep 17 00:00:00 2001 From: Kirthi Shankar Sivamani Date: Wed, 12 Jun 2024 09:18:48 -0700 Subject: [PATCH] Fix local cpp tests after inplace build (#911) Add top level path to search for .so in test build Signed-off-by: Kirthi Shankar Sivamani --- tests/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp/CMakeLists.txt b/tests/cpp/CMakeLists.txt index 1993f19447..9eb50a4c7d 100644 --- a/tests/cpp/CMakeLists.txt +++ b/tests/cpp/CMakeLists.txt @@ -26,7 +26,7 @@ if(NOT DEFINED TE_LIB_PATH) OUTPUT_VARIABLE TE_LIB_PATH) endif() -find_library(TE_LIB NAMES transformer_engine PATHS "${TE_LIB_PATH}/transformer_engine" ENV TE_LIB_PATH REQUIRED) +find_library(TE_LIB NAMES transformer_engine PATHS "${TE_LIB_PATH}/transformer_engine" ${TE_LIB_PATH} ENV TE_LIB_PATH REQUIRED) message(STATUS "Found transformer_engine library: ${TE_LIB}") include_directories(../../transformer_engine/common/include)