~percona-core/percona-server/5.5

« back to all changes in this revision

Viewing changes to mysys/CMakeLists.txt

Backport from trunk:
Bug#18187290 ISSUE WITH BUILDING MYSQL USING CMAKE 2.8.12

We want to upgrade to VS2013 on Windows.
In order to do this, we need to upgrade to cmake 2.8.12
This has introduced some incompatibilities for .pdb files,
and "make install" no longer works.

To reproduce:
  cmake --build . --target package --config debug

The fix:
Rather than installing .pdb files for static libraries, we use the /Z7 flag
to store symbolic debugging information in the .obj files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
 
1
# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
2
2
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
78
78
TARGET_LINK_LIBRARIES(thr_lock mysys)
79
79
SET_TARGET_PROPERTIES(thr_lock PROPERTIES COMPILE_FLAGS "-DMAIN")
80
80
 
81
 
INSTALL_DEBUG_SYMBOLS(mysys)
82
81
IF(MSVC)
83
82
   INSTALL_DEBUG_TARGET(mysys DESTINATION ${INSTALL_LIBDIR}/debug)
84
83
ENDIF()