summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-03-11 20:20:07 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-03-11 20:20:07 +0200
commita43ff483faac41f33a37c5699b7aa9053d2dbe28 (patch)
tree0990b3c1fc54faaf21e9a30348cd43328b3611f2 /cmake
parent7a4fbb55b02b449a135fe935f624422eaacfdd7c (diff)
parenta4b7232b2cfd504057c26f9b40a2dacf064dca73 (diff)
downloadmariadb-git-a43ff483faac41f33a37c5699b7aa9053d2dbe28.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'cmake')
-rw-r--r--cmake/pcre.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/cmake/pcre.cmake b/cmake/pcre.cmake
index 1a5dece481a..208f9ee755e 100644
--- a/cmake/pcre.cmake
+++ b/cmake/pcre.cmake
@@ -14,8 +14,15 @@ MACRO(BUNDLE_PCRE2)
IF(WIN32)
# Debug libary name.
# Same condition as in pcre2 CMakeLists.txt that adds "d"
- SET(file ${dir}/src/pcre2-build/${CMAKE_CFG_INTDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX})
- SET(file_d ${dir}/src/pcre2-build/${CMAKE_CFG_INTDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}d${CMAKE_STATIC_LIBRARY_SUFFIX})
+ GET_PROPERTY(MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+ IF(MULTICONFIG)
+ SET(intdir "${CMAKE_CFG_INTDIR}/")
+ ELSE()
+ SET(intdir)
+ ENDIF()
+
+ SET(file ${dir}/src/pcre2-build/${intdir}${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX})
+ SET(file_d ${dir}/src/pcre2-build/${intdir}${CMAKE_STATIC_LIBRARY_PREFIX}${lib}d${CMAKE_STATIC_LIBRARY_SUFFIX})
SET_TARGET_PROPERTIES(${lib} PROPERTIES IMPORTED_LOCATION_DEBUG ${file_d})
ELSE()
SET(file ${dir}/src/pcre2-build/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX})