mirror of
https://github.com/boostorg/cmake.git
synced 2026-02-22 03:12:18 +00:00
Install the .pdb files, if present
This commit is contained in:
@@ -126,6 +126,13 @@ function(boost_install LIB)
|
||||
set(CONFIG_INSTALL_DIR "${BOOST_INSTALL_CMAKEDIR}/${LIB}-${PROJECT_VERSION}")
|
||||
|
||||
install(TARGETS ${LIB} EXPORT ${LIB}-targets DESTINATION ${BOOST_INSTALL_LIBDIR})
|
||||
|
||||
if(TYPE STREQUAL "SHARED_LIBRARY")
|
||||
|
||||
install(FILES $<TARGET_PDB_FILE:${LIB}> DESTINATION ${BOOST_INSTALL_LIBDIR} OPTIONAL)
|
||||
|
||||
endif()
|
||||
|
||||
install(EXPORT ${LIB}-targets DESTINATION "${CONFIG_INSTALL_DIR}" NAMESPACE Boost:: FILE ${LIB}-targets.cmake)
|
||||
|
||||
set(CONFIG_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/${LIB}-config.cmake")
|
||||
|
||||
Reference in New Issue
Block a user