diff options
author | Arvin Schnell <aschnell@suse.de> | 2008-01-28 16:28:31 +0000 |
---|---|---|
committer | Arvin Schnell <aschnell@suse.de> | 2008-01-28 16:28:31 +0000 |
commit | f15b92b90720479d81252ee589aee90ececbe9f3 (patch) | |
tree | 2e40cafd44258818456da4ca3d745042b08d56fe /swig | |
parent | fdf7a3b738e6ebc50f71bd8c0463542024c7023c (diff) | |
download | libzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.tar.gz libzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.tar.bz2 libzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.zip |
- avoid newline right away when printing python lib path
Diffstat (limited to 'swig')
-rw-r--r-- | swig/python/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt index 051e791..cbdb87a 100644 --- a/swig/python/CMakeLists.txt +++ b/swig/python/CMakeLists.txt @@ -4,8 +4,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing") FIND_PACKAGE(PythonInterp REQUIRED) FIND_PACKAGE(PythonLibs REQUIRED) -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib()" OUTPUT_VARIABLE PYTHON_LIB_PATH) -STRING(REPLACE "\n" "" PYTHON_LIB_PATH "${PYTHON_LIB_PATH}") +EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_LIB_PATH) MESSAGE(STATUS "Python executable: ${PYTHON_EXECUTABLE}") MESSAGE(STATUS "Python lib path: ${PYTHON_LIB_PATH}") |