Skip to content

Commit

Permalink
Quiet CMake warnings about SWIG
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Dec 18, 2020
1 parent 7781eb1 commit 1e56c36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif(POLICY CMP0042)

# Use consistent SWIG target names across all supported cmake versions
if(POLICY CMP0078)
cmake_policy(SET CMP0078 OLD)
endif(POLICY CMP0078)

# Quiet warning about UseSWIG honoring SWIG_MODULE_NAME (which we don't use)
if(POLICY CMP0086)
cmake_policy(SET CMP0086 NEW)
endif(POLICY CMP0086)

enable_testing()

include(GNUInstallDirs)
Expand Down

0 comments on commit 1e56c36

Please sign in to comment.