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.
2 parents fb8143d + 2d0611b commit 8129f53Copy full SHA for 8129f53
cmake/templates/OpenCVConfig.cmake.in
@@ -199,6 +199,14 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS})
199
)
200
endif()
201
202
+ # OpenCV supports Debug and Release only.
203
+ # RelWithDebInfo and MinSizeRel are mapped to Release
204
+ if(TARGET ${__cvcomponent})
205
+ set_target_properties(${__cvcomponent} PROPERTIES
206
+ MAP_IMPORTED_CONFIG_MINSIZEREL "Release"
207
+ MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Release"
208
+ )
209
+ endif()
210
endforeach()
211
212
# ==============================================================
0 commit comments