summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2022-03-25 16:02:06 +0100
committerKefu Chai <tchaikov@gmail.com>2022-03-25 16:49:12 +0100
commitf0fc04fbea3ec68d1cab321e016046e0b204def1 (patch)
treee96d78b6f1312de16daaae446493f4903abd2c34 /cmake
parentMerge pull request #45573 from wxypro/cephfs-shell-typos (diff)
downloadceph-f0fc04fbea3ec68d1cab321e016046e0b204def1.tar.xz
ceph-f0fc04fbea3ec68d1cab321e016046e0b204def1.zip
cmake/modules: drop a cmake variable
less redirections Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to '')
-rw-r--r--cmake/modules/Distutils.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake
index 2c0df43dea6..862f80820e2 100644
--- a/cmake/modules/Distutils.cmake
+++ b/cmake/modules/Distutils.cmake
@@ -63,9 +63,8 @@ function(distutils_add_cython_module target name src)
set(PY_CXX ${compiler_launcher} ${CMAKE_CXX_COMPILER} ${cxx_compiler_arg1})
set(PY_LDSHARED ${link_launcher} ${CMAKE_C_COMPILER} ${c_compiler_arg1} "-shared")
- set(suffix_var "EXT_SUFFIX")
execute_process(COMMAND "${Python3_EXECUTABLE}" -c
- "from distutils import sysconfig; print(sysconfig.get_config_var('${suffix_var}'))"
+ "from distutils import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"
RESULT_VARIABLE result
OUTPUT_VARIABLE ext_suffix
ERROR_VARIABLE error