Skip to content

Commit 61612cf

Browse files
allnesaobolensk
andauthored
Fix path for codecov build (#383)
Co-authored-by: Arseniy Obolenskiy <[email protected]>
1 parent 2e7ec23 commit 61612cf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

cmake/configure.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ else ()
2525
endif ()
2626

2727
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
28-
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
28+
29+
if (USE_COVERAGE)
30+
set(CMAKE_INSTALL_RPATH "${CMAKE_BINARY_DIR}/ppc_onetbb/install/lib")
31+
else()
32+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
33+
endif ()
34+
2935
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
3036
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
3137
set(CMAKE_SKIP_BUILD_RPATH OFF)

scripts/run_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def __source_script(script_path):
5959
return {}
6060

6161
def setup_env(self):
62-
self.work_dir = Path(self.__get_project_path()) / "install" / "bin"
62+
if (Path(self.__get_project_path()) / "install").exists():
63+
self.work_dir = Path(self.__get_project_path()) / "install" / "bin"
64+
else:
65+
self.work_dir = Path(self.__get_project_path()) / "build" / "bin"
6366

6467
@staticmethod
6568
def __run_exec(command):

0 commit comments

Comments
 (0)