diff options
author | Andreas Schneider <asn@samba.org> | 2015-12-16 10:36:22 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2015-12-16 11:23:18 +0100 |
commit | a546277abdf5febee0993c7cddcaf255b58990ce (patch) | |
tree | f5e354484c95aeeb73730ed9bc7a6cd051a1adb1 | |
parent | feee827042bcd08fc73f8a9b7878768f055ef09d (diff) | |
download | pam_wrapper-a546277abdf5febee0993c7cddcaf255b58990ce.tar.gz pam_wrapper-a546277abdf5febee0993c7cddcaf255b58990ce.tar.xz pam_wrapper-a546277abdf5febee0993c7cddcaf255b58990ce.zip |
cmake: Find the python executable
This is needed to find the PYTHON_SITELIB directory for module
installation.
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4743c6b..aa0f3fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,8 @@ macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source buil # Find out if we have threading available set(CMAKE_THREAD_PREFER_PTHREADS ON) find_package(Threads) + +find_package(PythonInterp) set(Python_ADDITIONAL_VERSIONS 2.6 2.7 3.3 3.4) find_package(PythonLibs) |