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.
This commit is contained in:
parent
d27ca503e5
commit
4e6bceed00
@ -484,10 +484,17 @@ IF(FREEGLUT_BUILD_SHARED_LIBS)
|
|||||||
INCLUDES DESTINATION include
|
INCLUDES DESTINATION include
|
||||||
)
|
)
|
||||||
IF(INSTALL_PDB)
|
IF(INSTALL_PDB)
|
||||||
|
IF(CMAKE_GENERATOR MATCHES "^Visual Studio")
|
||||||
INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/freeglut${CMAKE_DEBUG_POSTFIX}.pdb
|
INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/freeglut${CMAKE_DEBUG_POSTFIX}.pdb
|
||||||
DESTINATION bin
|
DESTINATION bin
|
||||||
CONFIGURATIONS Debug
|
CONFIGURATIONS Debug
|
||||||
COMPONENT Devel)
|
COMPONENT Devel)
|
||||||
|
ELSE()
|
||||||
|
INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/freeglut${CMAKE_DEBUG_POSTFIX}.pdb
|
||||||
|
DESTINATION bin
|
||||||
|
CONFIGURATIONS Debug
|
||||||
|
COMPONENT Devel)
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
||||||
|
Reference in New Issue
Block a user