From 45b199088a1aa937428e831f1e4c27ce94b61a65 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Tue, 17 Mar 2015 11:54:47 +0100 Subject: 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 --- bindings/python/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bindings') 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}) -- cgit v1.1