Do not enable LTO flags for MSVC debug configuration

pull/10759/head
Maksim Shabunin 7 years ago
parent f780ee12a0
commit 60f1c9dcdf
  1. 4
      cmake/OpenCVCompilerOptions.cmake

@ -244,8 +244,8 @@ if(MSVC)
endif() endif()
if(ENABLE_LTO) if(ENABLE_LTO)
set(OPENCV_EXTRA_FLAGS "${OPENCV_EXTRA_FLAGS} /GL") set(OPENCV_EXTRA_FLAGS_RELEASE "${OPENCV_EXTRA_FLAGS_RELEASE} /GL")
set(OPENCV_EXTRA_EXE_LINKER_FLAGS "${OPENCV_EXTRA_EXE_LINKER_FLAGS} /LTCG") set(OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE} /LTCG")
endif() endif()
endif() endif()

Loading…
Cancel
Save