fix msvc compilation problem (far and near macros)

This commit is contained in:
2018-10-23 01:42:25 +07:00
parent b732d423ce
commit 9e7006512f
4 changed files with 16 additions and 12 deletions

View File

@@ -18,6 +18,10 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
endif()
endif()
if(MSVC)
add_definitions(/MP)
endif(MSVC)
if(APPLE)
add_compile_options(-Wno-deprecated-declarations)
endif(APPLE)