From 49446c7b3227a9b95763b0d7ee0907b1017d595b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 24 May 2013 23:25:35 -0700 Subject: [PATCH] Set cmake policy CMP0005 and avoid unnecessary escape sequences --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dc2e6a2..1140b053 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4) IF(COMMAND CMAKE_POLICY) CMAKE_POLICY(SET CMP0003 NEW) + CMAKE_POLICY(SET CMP0005 NEW) ENDIF(COMMAND CMAKE_POLICY) SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") @@ -408,8 +409,8 @@ ENDIF() CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H) IF(NOT HAVE_STDINT_H) IF(HAVE_WINDOWS_H) - CHECK_C_SOURCE_COMPILES("\#define _WIN32_WINNT 0x0501 - \#include + CHECK_C_SOURCE_COMPILES("#define _WIN32_WINNT 0x0501 + #include __int64 foo; int main() {return 0;}" HAVE___INT64) ENDIF()