a few more small fixes

This commit is contained in:
Axel Kohlmeyer
2020-10-20 18:30:32 -04:00
parent 6259b277df
commit 0547425482

View File

@ -8,13 +8,14 @@ endif()
if(POLICY CMP0086)
cmake_policy(SET CMP0086 NEW)
endif()
enable_language(C)
# 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")
message(FATAL_ERROR "Option BUILD_SHARED_LIBS must be enabled to use SWIG wrappers")
endif()
find_package(SWIG REQUIRED)