mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 04:53:02 +08:00
[boost] Rename lib files in static builds
This commit is contained in:
parent
727e4ed6fa
commit
7811ef602e
@ -1,3 +1,3 @@
|
||||
Source: boost
|
||||
Version: 1.62-3
|
||||
Version: 1.62-4
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
|
@ -110,14 +110,14 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
else()
|
||||
# file(GLOB RELEASE_LIBS ${CURRENT_PACKAGES_DIR}/lib/libboost*.lib)
|
||||
# foreach(LIB ${RELEASE_LIBS})
|
||||
# get_filename_component(OLD_FILENAME ${LIB} NAME)
|
||||
# get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
||||
# string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
# string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME})
|
||||
# file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
# endforeach()
|
||||
file(GLOB RELEASE_LIBS ${CURRENT_PACKAGES_DIR}/lib/libboost*.lib)
|
||||
foreach(LIB ${RELEASE_LIBS})
|
||||
get_filename_component(OLD_FILENAME ${LIB} NAME)
|
||||
get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
||||
string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME})
|
||||
file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
endforeach()
|
||||
endif()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-rel done")
|
||||
|
||||
@ -130,14 +130,14 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||
FILES_MATCHING PATTERN "*.dll")
|
||||
else()
|
||||
# file(GLOB DEBUG_LIBS ${CURRENT_PACKAGES_DIR}/debug/lib/libboost*.lib)
|
||||
# foreach(LIB ${DEBUG_LIBS})
|
||||
# get_filename_component(OLD_FILENAME ${LIB} NAME)
|
||||
# get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
||||
# string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
# string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME})
|
||||
# file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
# endforeach()
|
||||
file(GLOB DEBUG_LIBS ${CURRENT_PACKAGES_DIR}/debug/lib/libboost*.lib)
|
||||
foreach(LIB ${DEBUG_LIBS})
|
||||
get_filename_component(OLD_FILENAME ${LIB} NAME)
|
||||
get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
||||
string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME})
|
||||
file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
endforeach()
|
||||
endif()
|
||||
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user