Closed dagophil closed 4 years ago
That's probably valid. It is useful to install PDB files if you want to debug code from inside the library, but if this mitigate your problem, do not hesitate to pull request that change! 😁
closing, see changes in #58
Hello,
Bug description: I am trying to build OIS on Windows 7 using the generator "Visual Studio 14 2015". Everything works fine if I leave all CMake Options on their default value. However, when I set
OIS_BUILD_SHARED_LIBS
to false, CMake fails with the following message:Steps to reproduce:
Expected behavior: No CMake error.
Platform:
Additional context: I think the error comes from the following lines in CMakeLists.txt:
According to the CMake documentation and this CMake issue, the
TARGET_PDB_FILE
is for linker PDB files, however, static libraries need compiler PDB files. I think it does not make sense to deploy those, so changing aboveif(MSVC)
to the following may be a solution:Do you think this is a valid solution? If so, should I add a pull request for the fix?