mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 22:09:00 +08:00
[boost] Fix dynamic build lib renaming
This commit is contained in:
parent
50a85c3159
commit
a545be80b4
@ -1,3 +1,3 @@
|
||||
Source: boost
|
||||
Version: 1.62-7
|
||||
Version: 1.62-8
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
|
@ -114,7 +114,11 @@ function(boost_rename_libs LIBS)
|
||||
string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
||||
string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME}) # For Release libs
|
||||
string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
|
||||
file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
if (EXISTS ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
file(REMOVE ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME})
|
||||
else()
|
||||
file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user