mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Do not enable LTO flags for MSVC debug configuration
This commit is contained in:
parent
f780ee12a0
commit
60f1c9dcdf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user