summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-03-17 11:54:47 +0100
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:11 -0700
commit45b199088a1aa937428e831f1e4c27ce94b61a65 (patch)
tree8292ced1242b9bcd920ef5af164e7d196472667e /bindings
parent46a021d5de6e7448c79f621e0525e920a6206425 (diff)
downloadexternal_parameter-framework-45b199088a1aa937428e831f1e4c27ce94b61a65.zip
external_parameter-framework-45b199088a1aa937428e831f1e4c27ce94b61a65.tar.gz
external_parameter-framework-45b199088a1aa937428e831f1e4c27ce94b61a65.tar.bz2
cmake/python bindings: remove duplicated PythonLibs inclusion
It was included by both find_package() and include(); the success of the inclusion was then checked manually. Instead, find_pacakge(PythonLibs REQUIRED) does the inclusion and the checking automatically. Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index c159d96..7e18014 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -29,7 +29,7 @@
find_package(SWIG REQUIRED)
include(${SWIG_USE_FILE})
-find_package(PythonLibs)
+find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_PATH})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
@@ -40,11 +40,6 @@ set_property(SOURCE pfw.i PROPERTY SWIG_FLAGS "-Wall" "-Werror")
swig_add_module(PyPfw python pfw.i)
swig_link_libraries(PyPfw parameter ${PYTHON_LIBRARIES})
-include(FindPythonLibs)
-if(NOT PYTHONLIBS_FOUND)
- message(SEND_ERROR "python librarires not found. please instal python
- development packages")
-endif()
include_directories(${PROJECT_SOURCE_DIR}/parameter/include ${PYTHON_INCLUDE_DIRS})