diff options
-rw-r--r-- | qpid/cpp/bindings/qpid/CMakeLists.txt | 2 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/perl/CMakeLists.txt | 1 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/python/CMakeLists.txt | 1 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/ruby/CMakeLists.txt | 1 |
4 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/bindings/qpid/CMakeLists.txt b/qpid/cpp/bindings/qpid/CMakeLists.txt index b44065d32f..7c9f76f991 100644 --- a/qpid/cpp/bindings/qpid/CMakeLists.txt +++ b/qpid/cpp/bindings/qpid/CMakeLists.txt @@ -25,6 +25,8 @@ include(FindPythonLibs) include(FindPerlLibs) if (SWIG_FOUND) + set(CMAKE_SWIG_FLAGS "-w361,362,401,467,503") + if (PYTHONLIBS_FOUND) add_subdirectory(python) endif (PYTHONLIBS_FOUND) diff --git a/qpid/cpp/bindings/qpid/perl/CMakeLists.txt b/qpid/cpp/bindings/qpid/perl/CMakeLists.txt index da3c0be41a..92ec5340e0 100644 --- a/qpid/cpp/bindings/qpid/perl/CMakeLists.txt +++ b/qpid/cpp/bindings/qpid/perl/CMakeLists.txt @@ -20,7 +20,6 @@ ##------------------------------------------------------ ## Use Swig to generate a literal binding to the C++ API ##------------------------------------------------------ -set(CMAKE_SWIG_FLAGS "-w361,362,401,467,503") set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/perl.i PROPERTIES CPLUSPLUS ON) set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/perl.i PROPERTIES SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include") diff --git a/qpid/cpp/bindings/qpid/python/CMakeLists.txt b/qpid/cpp/bindings/qpid/python/CMakeLists.txt index 51c983f3cf..5e4649cd7c 100644 --- a/qpid/cpp/bindings/qpid/python/CMakeLists.txt +++ b/qpid/cpp/bindings/qpid/python/CMakeLists.txt @@ -20,7 +20,6 @@ ##------------------------------------------------------ ## Use Swig to generate a literal binding to the C++ API ##------------------------------------------------------ -set(CMAKE_SWIG_FLAGS "-w361,362,401,467") set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/python.i PROPERTIES CPLUSPLUS ON) set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/python.i PROPERTIES SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include") diff --git a/qpid/cpp/bindings/qpid/ruby/CMakeLists.txt b/qpid/cpp/bindings/qpid/ruby/CMakeLists.txt index 7113d93b62..d403f3fdee 100644 --- a/qpid/cpp/bindings/qpid/ruby/CMakeLists.txt +++ b/qpid/cpp/bindings/qpid/ruby/CMakeLists.txt @@ -20,7 +20,6 @@ ##------------------------------------------------------ ## Use Swig to generate a literal binding to the C++ API ##------------------------------------------------------ -set(CMAKE_SWIG_FLAGS "-w361,362,401,467") set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES CPLUSPLUS ON) set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include") |