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

Install fails with INSTALL_MSVC_PDB=ON and -G "Visual Studio XXX" #369

Open
cosine0 opened this issue Jan 16, 2024 · 0 comments · May be fixed by #370
Open

Install fails with INSTALL_MSVC_PDB=ON and -G "Visual Studio XXX" #369

cosine0 opened this issue Jan 16, 2024 · 0 comments · May be fixed by #370

Comments

@cosine0
Copy link

cosine0 commented Jan 16, 2024

When built with Visual Studio generators, the binary and PDB files are generated in the $(BuildDir)\$(Configuration) directory by default. But currently the CMakeLists.txt file is configure to find the PDB file in ${PROJECT_BINARY_DIR}, which is by default just $(BuildDir).

pcre2/CMakeLists.txt

Lines 651 to 652 in 7b649dc

SET(dll_pdb_files ${PROJECT_BINARY_DIR}/pcre2-posix.pdb ${dll_pdb_files})
SET(dll_pdb_debug_files ${PROJECT_BINARY_DIR}/pcre2-posixd.pdb ${dll_pdb_debug_files})

Therefore this result in this error:

CMake Error at build/cmake_install.cmake:440 (file):
  file INSTALL cannot find
  "C:/Users/NFS/CLionProjects/pcre2/build/pcre2-32.pdb": File exists.

which makes the installation fail.

@cosine0 cosine0 linked a pull request Jan 16, 2024 that will close this issue
@cosine0 cosine0 changed the title Install fails with INSTALL_MSVC_PDB=ON and -G Visual Studio XXX Install fails with INSTALL_MSVC_PDB=ON and -G "Visual Studio XXX" Jan 16, 2024
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

Successfully merging a pull request may close this issue.

1 participant