diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt index 3e642cfbb1..1dd682794d 100644 --- a/swig/CMakeLists.txt +++ b/swig/CMakeLists.txt @@ -1,6 +1,6 @@ -# CMake configuration for generating script language interfaces with swig +# CMake configuration for generating script language interfaces with SWIG -# set minimum CMake version required and switch to new policies +# set minimum CMake version required and switch to new policies for SWIG cmake_minimum_required(VERSION 3.14) if(POLICY CMP0078) cmake_policy(SET CMP0078 NEW) @@ -9,6 +9,10 @@ if(POLICY CMP0086) cmake_policy(SET CMP0086 NEW) endif() +# some of the find_package() scripts trigger developer warnings +# even though they are bundled with CMake; Suppress them +set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS TRUE) + if(NOT BUILD_SHARED_LIBS) error(FATAL_ERROR "Option BUILD_SHARED_LIBS must be enabled to use SWIG wrappers") endif()