aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/LocatePythonModule.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/LocatePythonModule.cmake')
-rw-r--r--cmake/modules/LocatePythonModule.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/LocatePythonModule.cmake b/cmake/modules/LocatePythonModule.cmake
index 813cf25b53..efc6c3ff2e 100644
--- a/cmake/modules/LocatePythonModule.cmake
+++ b/cmake/modules/LocatePythonModule.cmake
@@ -29,7 +29,7 @@ function(LOCATE_PYTHON_MODULE module)
# Use the (native) python impl module to find the location of the requested module
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
- "import imp; print imp.find_module('${module}')[1]"
+ "import imp; print(imp.find_module('${module}')[1])"
RESULT_VARIABLE _${module}_status
OUTPUT_VARIABLE _${module}_location
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)