Skip to content
Snippets Groups Projects
Commit 1fc57251 authored by Nicholas Milef's avatar Nicholas Milef
Browse files

BUG: fixed compilation error in Visual Studio 2017 15.8

parent f55c82f7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
#-----------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment