Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation in Debug build on VS is broken if CMAKE_PDB_OUTPUT_DIRECTORY is specified #635

Open
GyrosGeier opened this issue Jul 31, 2016 · 2 comments

Comments

@GyrosGeier
Copy link

As I archive the PDB files on a separate symbol server, I install them into a different path than the regular installation prefix. When this is specified, the install target breaks in Debug builds:

     -- Installing: c:/OCE-0.18-dev/Win32/lib/TKerneld.lib
     -- Installing: c:/OCE-0.18-dev/Win32/bin/TKerneld.dll
     CMake Error at adm/cmake/TKernel/cmake_install.cmake:290 (file):
       file INSTALL cannot find
       "C:/Jenkins/workspace/windows-oce-msvc-head/878e2a29/bin//Debug/TKerneld.pdb".
@ghost
Copy link

ghost commented Jul 31, 2016

Hmm, try removing the trailing slash in set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin/) in line 773 of CMakeLists.txt

@GyrosGeier
Copy link
Author

The problem is that if I set CMAKE_PDB_OUTPUT_DIRECTORY, the PDB files are created in that directory instead of the normal project output directory, so the install step cannot find them.

I've worked around the problem by asking OCE to not install the PDBs. It seems to me that the OCE build scripts duplicate part of CMake's base functionality here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant