From 15b025ff915e41c718d6d37c220ffbe3bee23589 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 2 Jul 2017 10:55:21 -0400 Subject: [PATCH] tests: Add the theme path ENV variable That way theme assets can be used by the documentation images --- tests/examples/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index ae0a72ce4..bf2eda337 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -63,6 +63,11 @@ ${LUA_PATH_}") set(LUA_COV_RUNNER env -u LUA_PATH_5_1 -u LUA_PATH_5_2 -u LUA_PATH_5_3 "LUA_PATH=${LUA_PATH_}" ${LUA_COV_RUNNER}) +# Done in 3 variables to avoid CMake from implicitly converting into a list. +set(ENV{LUA_PATH} "${LUA_PATH3_}${LUA_PATH2_}${LUA_PATH_}") + +set(ENV{AWESOME_THEMES_PATH} "${TOP_SOURCE_DIR}/themes/") + # The documentation images directory. set(IMAGE_DIR "${CMAKE_BINARY_DIR}/doc/images") file(MAKE_DIRECTORY "${IMAGE_DIR}")