CMake tweaks to avoid errors in visual studio

This commit is contained in:
Davis King 2017-10-16 21:11:16 -04:00
parent 3b2d73db68
commit f18f753c04
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
set(USING_OLD_VISUAL_STUDIO_COMPILER 0)
if(MSVC AND MSVC_VERSION VERSION_LESS 1900)

View File

@ -80,7 +80,7 @@ else()
cxx_delegating_constructors
cxx_thread_local
cxx_constexpr
cxx_decltype_incomplete_return_types
# cxx_decltype_incomplete_return_types # purposfully commented out because cmake errors out on this when using visual studio and cmake 3.8.0
cxx_auto_type
)