summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-19 13:47:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:31:24 +0100
commita89d6e9dcb45ae587bd6add0744085f89e902b6c (patch)
tree2f9899954367b84c75682a940c816acf966ad52c
parenta79dadf11ad3a882e2cbf5f94934ceaf7f4f015d (diff)
cmake/msvc: fix duplicate code
include(... NO_POLICY_SCOPE) already does that.
-rw-r--r--cmake/msvc.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index d606aa39..0f1b6c6f 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -30,11 +30,6 @@ set(warns-disable 4530 4577 4789 4244 4702 4530 4244 4127 4458 4456 4251 4100 47
if(CMAKE_PROJECT_NAME STREQUAL "opentrack")
include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE)
- foreach(k CMP0020 CMP0022 CMP0058 CMP0028 CMP0042 CMP0063 CMP0053 CMP0011 CMP0054 CMP0012)
- if(POLICY ${k})
- cmake_policy(SET ${k} NEW)
- endif()
- endforeach()
# C4265: class has virtual functions, but destructor is not virtual
set(warns 4265)