From b921dd16b1d15d6f9e93233ee2f90d8f10168e65 Mon Sep 17 00:00:00 2001 From: andriyDev Date: Sun, 19 Mar 2023 19:31:18 -0700 Subject: [PATCH] Make installing PDBs optional. (#611) PDBs are not necessarily generated, even in Debug configuration. For example, if the CXX_FLAGS are set to /Z7, debug symbols are embedded, and so the PDBs are not generated. This prevents installing from failing by marking these PDBs as optional. Fix #610 --- DebugUtils/CMakeLists.txt | 2 +- Detour/CMakeLists.txt | 2 +- DetourCrowd/CMakeLists.txt | 2 +- DetourTileCache/CMakeLists.txt | 2 +- Recast/CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DebugUtils/CMakeLists.txt b/DebugUtils/CMakeLists.txt index b04e67d..a3cd799 100644 --- a/DebugUtils/CMakeLists.txt +++ b/DebugUtils/CMakeLists.txt @@ -35,5 +35,5 @@ file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) if(MSVC) - install(FILES "$/DebugUtils-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib") + install(FILES "$/DebugUtils-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib" OPTIONAL) endif() diff --git a/Detour/CMakeLists.txt b/Detour/CMakeLists.txt index 0c12683..57ebd5a 100644 --- a/Detour/CMakeLists.txt +++ b/Detour/CMakeLists.txt @@ -29,5 +29,5 @@ file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) if(MSVC) - install(FILES "$/Detour-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib") + install(FILES "$/Detour-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib" OPTIONAL) endif() diff --git a/DetourCrowd/CMakeLists.txt b/DetourCrowd/CMakeLists.txt index 6ecd0dd..214cb4c 100644 --- a/DetourCrowd/CMakeLists.txt +++ b/DetourCrowd/CMakeLists.txt @@ -33,5 +33,5 @@ file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) if(MSVC) - install(FILES "$/DetourCrowd-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib") + install(FILES "$/DetourCrowd-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib" OPTIONAL) endif() diff --git a/DetourTileCache/CMakeLists.txt b/DetourTileCache/CMakeLists.txt index fcd23d5..e9cd3ed 100644 --- a/DetourTileCache/CMakeLists.txt +++ b/DetourTileCache/CMakeLists.txt @@ -34,5 +34,5 @@ file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) if(MSVC) - install(FILES "$/DetourTileCache-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib") + install(FILES "$/DetourTileCache-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib" OPTIONAL) endif() diff --git a/Recast/CMakeLists.txt b/Recast/CMakeLists.txt index 001430b..75a6939 100644 --- a/Recast/CMakeLists.txt +++ b/Recast/CMakeLists.txt @@ -29,5 +29,5 @@ file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) if(MSVC) - install(FILES "$/Recast-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib") + install(FILES "$/Recast-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib" OPTIONAL) endif()