[boost] Fix dynamic build lib renaming

This commit is contained in:
Alexander Karatarakis 2016-12-06 13:48:37 -08:00
parent 50a85c3159
commit a545be80b4
2 changed files with 6 additions and 2 deletions

View File

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

View File

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