mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
CMake tweaks to avoid errors in visual studio
This commit is contained in:
parent
3b2d73db68
commit
f18f753c04
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user