From 7e9480b6cd74d23fddcf20ec2ed414144f1c6ba3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 25 May 2020 21:28:03 +1000 Subject: Tests: correct the blender path for non-portable installations --- tests/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 966572b23e7..8f6edcff482 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -19,7 +19,11 @@ elseif(APPLE) set(TEST_BLENDER_EXE ${TEST_INSTALL_DIR}/Blender.app/Contents/MacOS/Blender) set(TEST_PYTHON_EXE) else() - set(TEST_BLENDER_EXE ${TEST_INSTALL_DIR}/blender) + if(WITH_INSTALL_PORTABLE) + set(TEST_BLENDER_EXE ${TEST_INSTALL_DIR}/blender) + else() + set(TEST_BLENDER_EXE ${TEST_INSTALL_DIR}/bin/blender) + endif() set(TEST_PYTHON_EXE) endif() -- cgit v1.2.3