From 0054607bbe63408c594fd77799626d037472cbfa Mon Sep 17 00:00:00 2001 From: brarcher Date: Wed, 25 Dec 2013 03:04:27 +0000 Subject: [PATCH] cmake: set srcdir env var for shell script test runners git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@946 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4499bb..00b9d19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -387,6 +387,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.h.in include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) add_definitions(-DHAVE_CONFIG_H) set(CONFIG_HEADER ${CMAKE_CURRENT_BINARY_DIR}/config.h) +# For the test_vars.in script, to give the unit test shell script +# runners the location of the source files +set(srcdir ${CMAKE_CURRENT_SOURCE_DIR}/tests) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tests/test_vars.in ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_vars) -- 2.40.0