Skip to content

Commit 89cd740

Browse files
committed
Merge pull request opencv#6704 from alalek:cmake_cmp0042
2 parents 4597b94 + f5306a0 commit 89cd740

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ if(POLICY CMP0026)
8181
cmake_policy(SET CMP0026 OLD)
8282
endif()
8383

84-
if (POLICY CMP0042)
85-
# silence cmake 3.0+ warnings about MACOSX_RPATH
86-
cmake_policy(SET CMP0042 OLD)
84+
if(POLICY CMP0042)
85+
cmake_policy(SET CMP0042 NEW)
8786
endif()
8887

8988
include(cmake/OpenCVUtils.cmake)

0 commit comments

Comments
 (0)