mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
possibility to enable /mp compiler flag from cmake
fixed MCVC warnings
This commit is contained in:
@@ -283,3 +283,8 @@ if(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251") #class 'std::XXX' needs to have dll-interface to be used by clients of YYY
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if (MSVC AND ENABLE_MULTI_PROCESSOR_COMPILATION)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user