From: Sean Moore Date: Mon, 31 Jul 2017 20:49:16 +0000 (+0000) Subject: Fixed freeglut.pdb install for builds with MSVC compiler and NMake. X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=sidebyside;h=002dae879eda329f38fe65cb6f99d4f481a2eb47;p=freeglut Fixed freeglut.pdb install for builds with MSVC compiler and NMake. The CMake variable "MSVC" indicates that the Visual Studio compiler is used but when using that compiler and the "NMake Makefiles JOM" build generator the *.pdb is wasn't output in a "Debug" directory. (cherry picked from commit 4e6bceed00b2c64a3cfc0bcbf84350f656a4a7c3) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1834 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c86d4ce..fef41fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -484,10 +484,17 @@ IF(FREEGLUT_BUILD_SHARED_LIBS) INCLUDES DESTINATION include ) IF(INSTALL_PDB) - INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/freeglut${CMAKE_DEBUG_POSTFIX}.pdb - DESTINATION bin - CONFIGURATIONS Debug - COMPONENT Devel) + IF(CMAKE_GENERATOR MATCHES "^Visual Studio") + INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/freeglut${CMAKE_DEBUG_POSTFIX}.pdb + DESTINATION bin + CONFIGURATIONS Debug + COMPONENT Devel) + ELSE() + INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/freeglut${CMAKE_DEBUG_POSTFIX}.pdb + DESTINATION bin + CONFIGURATIONS Debug + COMPONENT Devel) + ENDIF() ENDIF() ENDIF() IF(FREEGLUT_BUILD_STATIC_LIBS)