Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Patch the conanfile to make use of Visual Studio 2019 compiler #67

Open
wants to merge 1 commit into
base: release/3.4.5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def source(self):

shutil.rmtree(os.path.join(self._source_subfolder, '3rdparty'))

tools.replace_in_file("source_subfolder/cmake/OpenCVDetectCXXCompiler.cmake", "set(OpenCV_RUNTIME vc15)",
'''set(OpenCV_RUNTIME vc15)
elseif(MSVC_VERSION MATCHES "^192[0-9]$")
set(OpenCV_RUNTIME vc16)''')

def config_options(self):
if self.settings.os == 'Windows':
del self.options.fPIC
Expand Down