We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43e5e2 commit 7997e7aCopy full SHA for 7997e7a
cmake/templates/OpenCVConfig.cmake.in
@@ -219,6 +219,14 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS})
219
string(TOUPPER "${__cvcomponent}" __cvcomponent)
220
set(${__cvcomponent}_FOUND 1)
221
endif()
222
+ # OpenCV supports Debug and Release only.
223
+ # RelWithDebInfo and MinSizeRel are mapped to Release
224
+ if(TARGET ${__cvcomponent})
225
+ set_target_properties(${__cvcomponent} PROPERTIES
226
+ MAP_IMPORTED_CONFIG_MINSIZEREL "Release"
227
+ MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Release"
228
+ )
229
+ endif()
230
endforeach()
231
set(OpenCV_FIND_COMPONENTS ${OpenCV_FIND_COMPONENTS_})
232
0 commit comments