~percona-core/percona-server/5.5

« back to all changes in this revision

Viewing changes to libmysql/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:
168
168
MERGE_LIBRARIES(mysqlclient STATIC ${LIBS} COMPONENT Development)
169
169
 
170
170
# Visual Studio users need debug  static library for debug projects
171
 
INSTALL_DEBUG_SYMBOLS(clientlib)
172
171
IF(MSVC)
173
172
 INSTALL_DEBUG_TARGET(mysqlclient DESTINATION ${INSTALL_LIBDIR}/debug)
174
173
 INSTALL_DEBUG_TARGET(clientlib DESTINATION ${INSTALL_LIBDIR}/debug)