From 061c434a90cc4894df9d85370a6cd065b2db787f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 28 Dec 2016 00:44:39 +0100 Subject: [PATCH] CMakeLists.txt: use source dir with check-unit/check-unit-coverage The build files do not get updated on source changes currently anyway (as a dependency of these targets), and this seems to be a leftover from when `lua.in` files were used / pre-processing was required?! --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fb4e596..677f43f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,7 +389,7 @@ if(BUSTED_EXECUTABLE) # Keep the arguments in sync with the version below! add_custom_target(check-unit ALL ${BUSTED_EXECUTABLE} "--helper=${CMAKE_SOURCE_DIR}/spec/preload.lua" - "--lpath=${CMAKE_BINARY_DIR}/lib/?.lua;${CMAKE_BINARY_DIR}/lib/?/init.lua;spec/?.lua" + "--lpath=lib/?.lua;lib/?/init.lua;spec/?.lua" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMENT "Running unit tests" VERBATIM) @@ -397,9 +397,8 @@ if(BUSTED_EXECUTABLE) # Same as above, but with --coverage argument add_custom_target(check-unit-coverage - "BUILD_DIRECTORY=${CMAKE_BINARY_DIR}/" ${BUSTED_EXECUTABLE} "--helper=${CMAKE_SOURCE_DIR}/spec/preload.lua" - "--lpath=${CMAKE_BINARY_DIR}/lib/?.lua;${CMAKE_BINARY_DIR}/lib/?/init.lua;spec/?.lua" + "--lpath=lib/?.lua;lib/?/init.lua;spec/?.lua" "--coverage" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMENT "Running unit tests under LuaCov"