[boost] Rename lib files in static builds

This commit is contained in:
Alexander Karatarakis 2016-11-15 14:52:52 -08:00
parent 727e4ed6fa
commit 7811ef602e
2 changed files with 17 additions and 17 deletions

View File

@ -1,3 +1,3 @@
Source: boost
Version: 1.62-3
Version: 1.62-4
Description: Peer-reviewed portable C++ source libraries

View File

@ -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")