From 08df1271c8ee220d7085cb4763ffeca3ea685e6d Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Wed, 3 Jan 2018 14:02:16 -0800 Subject: [PATCH] explicitly enable CMake policy 42 to prevent warning --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64d4523..d51e954 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() +if(POLICY CMP0042) + cmake_policy(SET CMP0042 NEW) +endif() + # If compiler support symbol visibility, enable it. include(CheckCCompilerFlag) check_c_compiler_flag(-fvisibility=hidden HAS_VISIBILITY)