diff --git a/CMakeLists.txt b/CMakeLists.txt
index 004dd076..cb7eed81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@
 # General settings
 ###############################################################################
 cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_policy(SET CMP0057 NEW)
 
 project(SOCI)
 
