Skip to content

Commit b043f99

Browse files
committed
Add cmake policies (CMP0078 and CMP0086) related to UseSWIG with OLD behavior
1 parent aaa9918 commit b043f99

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

swig/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# UseSWIG generates standard target names
2+
# Run "cmake --help-policy CMP0078" for policy details
3+
if (POLICY CMP0078)
4+
cmake_policy(SET CMP0078 OLD)
5+
endif()
6+
7+
# UseSWIG honors SWIG_MODULE_NAME via -module
8+
# Run "cmake --help-policy CMP0086" for policy details
9+
if (POLICY CMP0086)
10+
cmake_policy(SET CMP0086 OLD)
11+
endif()
12+
113
if(ENABLE_PERL)
214
add_subdirectory("perl")
315
endif()

0 commit comments

Comments
 (0)