CMAKE static build issue
envgap__OGRECave__ogre-3260
01 / FAILURE SIGNATURE
As reported upstream
It throws an error that it can't find the file "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/OgreMainStatic_d.pdb", for some reason the file is in "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/Debug/OgreMainStatic_d.pdb" along with all the rest of the files
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
7ade80bc9f0f68e8b465ae13be9342aa5f963d88- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
OGRECave/ogre #3260 · read the original issue
<!--
If you have a question rather than reporting a bug please go to
- https://gitter.im/OGRECave/ogre or
- https://forums.ogre3d.org/
where you get much faster responses.
This is a template helping you to create an issue which can be processed as quickly as possible.
-->
#### System Information
- Ogre Version: 14.3.1
- Operating System / Platform: Windows 10 x64
- RenderSystem: any
- cmake version 3.31.0-rc2
#### Detailled description
<!-- your description -->
When i try to build ogre into a static library using the following options and commands my build fails
```
set IRON_PROJECT_ROOT_PATH=%~dp0..\..\
CMAKE_BUILD_TYPE=Debug
rmdir /s /q %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\result
cd %IRON_PROJECT_ROOT_PATH%libraries\ogre-14.3.1
cmake -S . -B %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake -A x64 -G "Visual Studio 17 2022" -D OGRE_STATIC=TRUE -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE=Debug -D OGRE_CONFIG_DOUBLE=TRUE -D OGRE_BUILD_SAMPLES=FALSE -D CMAKE_INSTALL_PREFIX=%IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\result
cmake --build %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake --config Debug -j -v --target install
```
It throws an error that it can't find the file "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/OgreMainStatic_d.pdb", for some reason the file is in "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/Debug/OgreMainStatic_d.pdb" along with all the rest of the files

#### Ogre.log
The issue seems to be the error below, but i attached the full cmake log [aaaa.txt](https://github.com/user-attachments/files/17788265/aaaa.txt)
```CMake Error at OgreMain/cmake_install.cmake:57 (file):
file INSTALL cannot find
"C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/OgreMainStatic_d.pdb":
File exists.
Call Stack (most recent call first):
cmake_install.cmake:145 (include)
```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]