diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-03 08:39:58 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-03 08:57:38 +0300 |
commit | d5ce854fb1c70febf49ebc1242c48dd1ffa3a4aa (patch) | |
tree | 80ce83ba0f36978673043a9cdaccefc9d27f9687 /tests | |
parent | 65e4d169baa95e5f2dfbd65e5b4e995851a857df (diff) |
CMake: workaround unsupported cmake_path(IS_PREFIX ..) in v3.20
Add a macro that implements something similar to cmake_path's IS_PREFIX
which isn't supported in older versions of CMake.
This caused the build-bot to fail.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c96c6f2988d..9f634af7143 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -36,7 +36,7 @@ set(TEST_PYTHON_EXE_EXTRA_ARGS) # Check if this a Blender managed Python installation, if so, don't add `*.pyc` files. if(LIBDIR) - cmake_path(IS_PREFIX LIBDIR "${TEST_PYTHON_EXE}" NORMALIZE _is_prefix) + path_is_prefix(LIBDIR TEST_PYTHON_EXE _is_prefix) if(_is_prefix) # Keep the Python in Blender's SVN LIBDIR pristine, to avoid conflicts on updating. set(TEST_PYTHON_EXE_EXTRA_ARGS "-B") |