Set CMP0054 policy

Change-Id: I308471a2104f7fdd2815723d4b61f294ee427076
This commit is contained in:
Wes McKinney committed 2017-04-18 22:18:34 -04:00
1 parent d27563fe9f
commit 7c32abb769
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -36,6 +36,12 @@ else()
include(GNUInstallDirs)
endif()
# Compatibility with CMake 3.1
if(POLICY CMP0054)
# http://www.cmake.org/cmake/help/v3.1/policy/CMP0054.html
cmake_policy(SET CMP0054 NEW)
endif()
set(ARROW_SO_VERSION "0")
set(ARROW_ABI_VERSION "${ARROW_SO_VERSION}.0.0")
+1 -1
View File
@@ -30,7 +30,7 @@ if (MSVC)
# insecure, like std::getenv
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if ("\"${CMAKE_CXX_COMPILER_ID}\"" STREQUAL "Clang")
# clang-cl
set(CXX_COMMON_FLAGS "-EHsc")
elseif(${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 19)