diff options
author | Slávek Banko <[email protected]> | 2017-01-30 22:47:59 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-01-30 22:48:22 +0100 |
commit | 256b4c4867c7a20245feb1d465e13419b6860475 (patch) | |
tree | 4bfd409d062d3f8758aba7351cad8c9ca588dee3 | |
parent | bfd173661edf327bffc91a6bdf027ee8cf395575 (diff) | |
download | tdelibs-256b4c4867c7a20245feb1d465e13419b6860475.tar.gz tdelibs-256b4c4867c7a20245feb1d465e13419b6860475.zip |
testing: fix execution of test tdeabc/vcardparser/testread2 with CMake older than 2.8.4
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit d8d8c5e060212a15bca65f31e297f8edbf725fb0)
-rw-r--r-- | tdeabc/vcardparser/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdeabc/vcardparser/CMakeLists.txt b/tdeabc/vcardparser/CMakeLists.txt index e141d1f47..692b7829f 100644 --- a/tdeabc/vcardparser/CMakeLists.txt +++ b/tdeabc/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 tdeabc/vcardparser/testread2 COMMAND testread2 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" ) # testread tests |