Skip to content

Commit 1694d81

Browse files
committed
MDEV-8533 Debug embedded server does not build on Windows
pre/CMakeLists.txt defines CMAKE_DEBUG_POSTFIX which causes a different library name on Windows debug build (pcred.lib rather than pre.lib) However MERGE_LIBRARIES macro that is used to create static embedded library (out of other static libraries), can not handle per-configuration library names. Thus the build fails with "pre.lib not found" Fix is to remove unnecessary CMAKE_DEBUG_POSTFIX
1 parent f1daf9c commit 1694d81

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pcre/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,6 @@ IF(MSVC)
311311
ENDIF(MSVC)
312312

313313
SET(CMAKE_INCLUDE_CURRENT_DIR 1)
314-
# needed to make sure to not link debug libs
315-
# against release libs and vice versa
316-
IF(WIN32)
317-
SET(CMAKE_DEBUG_POSTFIX "d")
318-
ENDIF(WIN32)
319314

320315
SET(targets)
321316

0 commit comments

Comments
 (0)