From eac0d388231c563984aff7aadf459cbdfd40e25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 30 Jan 2017 22:47:59 +0100 Subject: [PATCH] testing: fix execution of test tdeabc/vcardparser/testread2 with CMake older than 2.8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit d8d8c5e060212a15bca65f31e297f8edbf725fb0) --- kabc/vcardparser/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kabc/vcardparser/CMakeLists.txt b/kabc/vcardparser/CMakeLists.txt index 5f2db7afc..c23236aa4 100644 --- a/kabc/vcardparser/CMakeLists.txt +++ b/kabc/vcardparser/CMakeLists.txt @@ -73,6 +73,12 @@ tde_add_check_executable( testread2 LINK ${TDEABC_TESTS_LINK} ) +if( CMAKE_VERSION VERSION_LESS "2.8.4" ) + if( NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/tests" ) + execute_process( COMMAND ln -s "${CMAKE_CURRENT_SOURCE_DIR}/tests" "${CMAKE_CURRENT_BINARY_DIR}/tests" ) + endif( ) +endif() + add_test( NAME kabc/vcardparser/testread2 COMMAND testread2 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" ) # testread tests