Skip to content

Commit 8dea251

Browse files
committed
CMake: Drop old policies
1 parent bb0d24b commit 8dea251

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ set (NLOPT_INSTALL_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/nlopt CACHE STRING "
6464
set (CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${NLOPT_INSTALL_LIBDIR} CACHE PATH "rpath")
6565
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "use link path")
6666

67-
if(POLICY CMP0042)
68-
# Set MACOSX_RPATH to ON
69-
cmake_policy(SET CMP0042 NEW)
70-
endif()
71-
72-
if (POLICY CMP0086)
73-
# UseSWIG honors SWIG_MODULE_NAME via -module flag
74-
cmake_policy(SET CMP0086 NEW)
75-
endif ()
76-
7767
include (CheckIncludeFiles)
7868
include (CheckFunctionExists)
7969
include (CheckTypeSize)

src/swig/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
2-
if (POLICY CMP0078)
3-
cmake_policy(SET CMP0078 NEW)
4-
endif ()
51
# clean up old generated source files before running SWIG, useful for Java
62
set(UseSWIG_MODULE_VERSION 2)
73
include (UseSWIG)

0 commit comments

Comments
 (0)