From d0cab268f8240f07d1b76da53151cb44fc8dd33b Mon Sep 17 00:00:00 2001 From: Sergey Yakubov <sergey.yakubov@desy.de> Date: Wed, 30 Jun 2021 20:13:36 +0200 Subject: [PATCH] fix makefiles --- CMakeModules/testing_cpp.cmake | 2 +- CMakeModules/testing_go.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeModules/testing_cpp.cmake b/CMakeModules/testing_cpp.cmake index 0c000601b..91678d8ae 100644 --- a/CMakeModules/testing_cpp.cmake +++ b/CMakeModules/testing_cpp.cmake @@ -114,7 +114,7 @@ function(gtest target test_source_files linktarget) endif () SETUP_TARGET_FOR_COVERAGE(NAME coverage-${target} EXECUTABLE test-${target} ${target}) add_test(NAME coveragetest-${target} - COMMAND ${CMAKE_MODULE_PATH}/check_test.sh + COMMAND ${PROJECT_SOURCE_DIR}/CMakeModules/check_test.sh coverage-${target} ${CMAKE_BINARY_DIR} ${ASAPO_MINIMUM_COVERAGE}) set_tests_properties(coveragetest-${target} PROPERTIES LABELS "coverage;all") message(STATUS "Added test 'test-${target}-coverage'") diff --git a/CMakeModules/testing_go.cmake b/CMakeModules/testing_go.cmake index f130ab796..465736a5d 100644 --- a/CMakeModules/testing_go.cmake +++ b/CMakeModules/testing_go.cmake @@ -16,7 +16,7 @@ function(gotest target source_dir test_source_files) message(STATUS "Added test 'test-${target}'") if (CMAKE_COMPILER_IS_GNUCXX) add_test(NAME coveragetest-${target} - COMMAND ${CMAKE_MODULE_PATH}/coverage_go.sh + COMMAND ${PROJECT_SOURCE_DIR}/CMakeModules/coverage_go.sh ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ASAPO_MINIMUM_COVERAGE} ${gopath} WORKING_DIRECTORY ${source_dir}) set_tests_properties(coveragetest-${target} PROPERTIES LABELS "coverage;all") -- GitLab