CMake: Fix using numpy variable for the zstandard path

Copy paste error in a5917175d8.
This commit is contained in:
Campbell Barton
2022-01-18 17:18:57 +11:00
parent 6dd89afa96
commit 1b94631975

View File

@@ -656,11 +656,11 @@ if(UNIX AND NOT APPLE)
# Install to the same directory as the source, so debian-like
# distros are happy with their policy.
set(_suffix "site-packages")
if(${PYTHON_NUMPY_PATH} MATCHES "dist-packages")
if(${PYTHON_ZSTANDARD_PATH} MATCHES "dist-packages")
set(_suffix "dist-packages")
endif()
install(
DIRECTORY ${PYTHON_NUMPY_PATH}/zstandard
DIRECTORY ${PYTHON_ZSTANDARD_PATH}/zstandard
DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
PATTERN ".svn" EXCLUDE
PATTERN "__pycache__" EXCLUDE # * any cache *