diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-06 13:48:37 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-06 13:48:37 -0800 |
| commit | a545be80b4a5388e6cfde1ab9cd554bcaede4065 (patch) | |
| tree | 6364e5d25edf2721bced027ceffc3ebf85e8c282 | |
| parent | 50a85c3159ce3e10eacdd5bc5ad3772d878afd3a (diff) | |
| download | vcpkg-a545be80b4a5388e6cfde1ab9cd554bcaede4065.tar.gz vcpkg-a545be80b4a5388e6cfde1ab9cd554bcaede4065.zip | |
[boost] Fix dynamic build lib renaming
| -rw-r--r-- | ports/boost/CONTROL | 2 | ||||
| -rw-r--r-- | ports/boost/portfile.cmake | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/boost/CONTROL b/ports/boost/CONTROL index 91c8496a5..52273d80e 100644 --- a/ports/boost/CONTROL +++ b/ports/boost/CONTROL @@ -1,3 +1,3 @@ Source: boost -Version: 1.62-7 +Version: 1.62-8 Description: Peer-reviewed portable C++ source libraries diff --git a/ports/boost/portfile.cmake b/ports/boost/portfile.cmake index 67d9096ac..f9d70554a 100644 --- a/ports/boost/portfile.cmake +++ b/ports/boost/portfile.cmake @@ -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() |
