Commit 1fc57251 authored by Nicholas Milef's avatar Nicholas Milef

BUG: fixed compilation error in Visual Studio 2017 15.8

parent f55c82f7
......@@ -66,9 +66,13 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
# Prevents a compiler error for Visual Studio 15.8
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
if(${MSVC_VERSION} GREATER_EQUAL 1915)
add_definitions(-D_DISABLE_EXTENDED_ALIGNED_STORAGE)
endif()
endif()
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment