obs-scripting: Quiet CMake SWIG warnings

This commit is contained in:
jpark37 2019-10-15 21:08:30 -07:00
parent 7d34034ee2
commit 7336226774
3 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,11 @@ endif()
project(obs-scripting)
if(POLICY CMP0068)
# RPATH settings on macOS do not affect install_name.
cmake_policy(SET CMP0068 NEW)
endif()
if(MSVC)
set(obs-scripting_PLATFORM_DEPS
w32-pthreads)

View File

@ -2,8 +2,13 @@ cmake_minimum_required(VERSION 2.8)
project(obslua)
if(POLICY CMP0078)
# UseSWIG generates standard target names.
cmake_policy(SET CMP0078 OLD)
endif()
if(POLICY CMP0086)
# UseSWIG honors SWIG_MODULE_NAME via -module flag.
cmake_policy(SET CMP0086 OLD)
endif()
find_package(SWIG 2 REQUIRED)
include(${SWIG_USE_FILE})

View File

@ -2,8 +2,13 @@ cmake_minimum_required(VERSION 2.8)
project(obspython)
if(POLICY CMP0078)
# UseSWIG generates standard target names.
cmake_policy(SET CMP0078 OLD)
endif()
if(POLICY CMP0086)
# UseSWIG honors SWIG_MODULE_NAME via -module flag.
cmake_policy(SET CMP0086 OLD)
endif()
find_package(SWIG 2 REQUIRED)
include(${SWIG_USE_FILE})