Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2020-09-24 19:34:55 +0300
committerSebastian Parborg <darkdefende@gmail.com>2020-09-24 19:34:55 +0300
commit6877a7b3ff6acc94b572dfab6c581ef6ed74e4f0 (patch)
tree9fc785b04bca67985c51e97798826acbd3701643 /tests
parent331f3833376bc372c566a7436fa04f90e29ee1b3 (diff)
Fix running tests when building without portable install.
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/runner/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gtests/runner/CMakeLists.txt b/tests/gtests/runner/CMakeLists.txt
index c1487e45b26..6640d798ed6 100644
--- a/tests/gtests/runner/CMakeLists.txt
+++ b/tests/gtests/runner/CMakeLists.txt
@@ -86,7 +86,11 @@ set(_GOOGLETEST_DISCOVER_TESTS_SCRIPT
if(APPLE)
set(_test_release_dir ${TEST_INSTALL_DIR}/Blender.app/Contents/Resources/${BLENDER_VERSION})
else()
- set(_test_release_dir ${TEST_INSTALL_DIR}/${BLENDER_VERSION})
+ if(WIN32 OR WITH_INSTALL_PORTABLE)
+ set(_test_release_dir ${TEST_INSTALL_DIR}/${BLENDER_VERSION})
+ else()
+ set(_test_release_dir ${TEST_INSTALL_DIR}/share/blender/${BLENDER_VERSION})
+ endif()
endif()
gtest_discover_tests(blender_test