File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,14 @@ MACRO(BUNDLE_PCRE2)
14
14
IF (WIN32 )
15
15
# Debug libary name.
16
16
# Same condition as in pcre2 CMakeLists.txt that adds "d"
17
- SET (file ${dir} /src/pcre2-build/${CMAKE_CFG_INTDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX} )
18
- SET (file_d ${dir} /src/pcre2-build/${CMAKE_CFG_INTDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}d${CMAKE_STATIC_LIBRARY_SUFFIX} )
17
+ IF (GENERATOR_IS_MULTI_CONFIG )
18
+ SET (intdir "${CMAKE_CFG_INTDIR} /" )
19
+ ELSE ()
20
+ SET (intdir )
21
+ ENDIF ()
22
+
23
+ SET (file ${dir} /src/pcre2-build${intdir}${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX} )
24
+ SET (file_d ${dir} /src/pcre2-build${intdir}${CMAKE_STATIC_LIBRARY_PREFIX}${lib}d${CMAKE_STATIC_LIBRARY_SUFFIX} )
19
25
SET_TARGET_PROPERTIES (${lib} PROPERTIES IMPORTED_LOCATION_DEBUG ${file_d} )
20
26
ELSE ()
21
27
SET (file ${dir} /src/pcre2-build/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX} )
You can’t perform that action at this time.
0 commit comments