aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2012-04-30 23:36:11 +0200
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-05-02 20:16:10 +0200
commitf169a8c0e154ddd1a531e2aab51288ab1209ebb9 (patch)
tree6da949f342f36c85046bffc3340d4de261707e5a
parent8c5297bb10daf508f787646b66a2e4c21e4e15f6 (diff)
Fixed resolving of SOABI. SOABI is implemented on Linux, but not on Windows
Change-Id: I472321506b53ff21ba608ebf72b0b7b458121387 Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
-rw-r--r--cmake/Modules/FindPython3InterpWithDebug.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/FindPython3InterpWithDebug.cmake b/cmake/Modules/FindPython3InterpWithDebug.cmake
index 23087e6..d5e728d 100644
--- a/cmake/Modules/FindPython3InterpWithDebug.cmake
+++ b/cmake/Modules/FindPython3InterpWithDebug.cmake
@@ -30,7 +30,7 @@ execute_process(
vr = sys.version_info; \\
prefix = '-python%d.%d' % (vr[0], vr[1]); \\
suffix = prefix + '-dbg' if bool(sysconfig.get_config_var('Py_DEBUG')) else prefix; \\
- suffix = '.' + sysconfig.get_config_var('SOABI') if (vr.major == 3 and vr.minor >= 2) else suffix; \\
+ suffix = '.' + sysconfig.get_config_var('SOABI') if (vr.major == 3 and vr.minor >= 2 and 'SOABI' in sysconfig.get_config_vars()) else suffix; \\
print(suffix)"
OUTPUT_VARIABLE PYTHON_SUFFIX
OUTPUT_STRIP_TRAILING_WHITESPACE)