Skip to content

Commit 8129f53

Browse files
committed
Merge pull request opencv#9656 from bblanchon:RelWithDebInfo
2 parents fb8143d + 2d0611b commit 8129f53

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/templates/OpenCVConfig.cmake.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS})
199199
)
200200
endif()
201201
endif()
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()
202210
endforeach()
203211

204212
# ==============================================================

0 commit comments

Comments
 (0)