forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[opencv2] Use DEBUG_POSTFIX in pkgconfig files (microsoft#42113)
- Loading branch information
1 parent
91e3894
commit 89f00b3
Showing
5 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/cmake/OpenCVGenPkgconfig.cmake | ||
+++ b/cmake/OpenCVGenPkgconfig.cmake | ||
@@ -54,6 +54,12 @@ foreach(CVLib ${OpenCV_LIB_COMPONENTS}) | ||
set(libname "${CVLib}") | ||
endif() | ||
|
||
+ string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type) | ||
+ get_target_property(libsuffix ${CVLib} ${build_type}_POSTFIX) | ||
+ if(libsuffix) | ||
+ string(APPEND libname "${libsuffix}") | ||
+ endif() | ||
+ | ||
set(libpath "\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}") | ||
list(APPEND OpenCV_LIB_COMPONENTS_ "-L${libpath}") | ||
list(APPEND OpenCV_LIB_COMPONENTS_ "-l${libname}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters