From 2388fb9a2ae4b8cfcf9dbe89b77c3ac9b6a8c708 Mon Sep 17 00:00:00 2001 From: Thomas Ingleby Date: Mon, 23 Mar 2015 17:07:54 +0000 Subject: [PATCH] swig/python: rename python-mraa.i to mraa.i Seemed to be a problem when generating python swig module when using cmake version 3.2.1 Signed-off-by: Thomas Ingleby --- src/python/CMakeLists.txt | 6 +++--- src/python/{python-mraa.i => mraa.i} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename src/python/{python-mraa.i => mraa.i} (100%) diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt index bd0edac..9eb7c13 100644 --- a/src/python/CMakeLists.txt +++ b/src/python/CMakeLists.txt @@ -14,9 +14,9 @@ include_directories( ${PYTHON_INCLUDE_DIRS} ) -set_source_files_properties (python-mraa.i PROPERTIES CPLUSPLUS ON) -set_source_files_properties (python-mraa.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src") -swig_add_module (python-mraa python python-mraa.i ${mraa_LIB_SRCS}) +set_source_files_properties (mraa.i PROPERTIES CPLUSPLUS ON) +set_source_files_properties (mraa.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src") +swig_add_module (python-mraa python mraa.i ${mraa_LIB_SRCS}) swig_link_libraries (python-mraa ${PYTHON_LIBRARIES}) if (DOXYGEN_FOUND) diff --git a/src/python/python-mraa.i b/src/python/mraa.i similarity index 100% rename from src/python/python-mraa.i rename to src/python/mraa.i