Skip to content

Commit

Permalink
add DBOOST_UUID_FORCE_AUTO_LINK to make sure that bcrypt links on azure
Browse files Browse the repository at this point in the history
  • Loading branch information
sc1f committed Apr 11, 2020
1 parent 9ab5ded commit 403b65b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ elseif(PSP_CPP_BUILD OR PSP_PYTHON_BUILD)
foreach(warning 4244 4251 4267 4275 4290 4786 4305 4996)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd${warning}")
endforeach(warning)
# When linking against Boost on Azure, bcrypt fails to link:
# - https://github.com/microsoft/vcpkg/issues/4481
# - https://github.com/boostorg/uuid/issues/68
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_UUID_FORCE_AUTO_LINK")
else()
include_directories("/usr/local/include")
endif()
Expand Down

0 comments on commit 403b65b

Please sign in to comment.