diff options
Diffstat (limited to 'bindings/python/CMakeLists.txt')
-rw-r--r-- | bindings/python/CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 535c920..e9016b1 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -48,9 +48,13 @@ endif(NOT PYTHONLIBS_FOUND) include_directories(${PROJECT_SOURCE_DIR}/parameter/include ${PYTHON_INCLUDE_DIRS}) -# Add some exceptions because files generated by SWIG are not -# "-Wextra"-compliant -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable") +# The 'unused-but-set-variable' warning must be disabled because SWIG generates +# files that do not respect that contraint. +# '-DSWIG_PYTHON_SILENT_MEMLEAK' is needed because the "memleak" warning +# pollutes the standard output. At the time of writing, the only warning is +# spurious anyway, as it relates to "ILogger *" which is an abstract +# class/interface class and as such cannot be destroyed. +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable -DSWIG_PYTHON_SILENT_MEMLEAK") install(TARGETS _PyPfw LIBRARY DESTINATION lib) |