Do not enable LTO flags for MSVC debug configuration

This commit is contained in:
Maksim Shabunin 2018-02-01 19:22:48 +03:00
parent f780ee12a0
commit 60f1c9dcdf

View File

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