suppress developer warnings

This commit is contained in:
Axel Kohlmeyer
2020-10-18 08:12:29 -04:00
parent 0685df3e64
commit 0f71c02059

View File

@ -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()