Skip to content

Commit

Permalink
Link bcrypt in CMake tests on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
13steinj committed Apr 19, 2024
1 parent beeaab4 commit f32c817
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)

include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)

if(NOT HAVE_BOOST_TEST)
return()
endif()
Expand All @@ -20,19 +18,19 @@ boost_test(TYPE run SOURCES test_io.cpp LINK_LIBRARIES Boost::lexical_cast)
boost_test(TYPE run SOURCES test_nil_generator.cpp)
boost_test(TYPE run SOURCES test_name_generator.cpp)
boost_test(TYPE run SOURCES test_string_generator.cpp)
boost_test(TYPE run SOURCES test_random_generator.cpp)
boost_test(TYPE run SOURCES test_random_generator.cpp LINK_LIBRARIES $<$<CXX_COMPILER_ID:MSVC>:bcrypt>)

boost_test(TYPE run SOURCES test_tagging.cpp)
boost_test(TYPE run SOURCES test_tagging.cpp LINK_LIBRARIES $<$<CXX_COMPILER_ID:MSVC>:bcrypt>)

boost_test(TYPE run SOURCES test_uuid_class.cpp)
boost_test(TYPE run SOURCES test_uuid_in_map.cpp)
boost_test(TYPE run SOURCES test_uuid_class.cpp LINK_LIBRARIES $<$<CXX_COMPILER_ID:MSVC>:bcrypt>)
boost_test(TYPE run SOURCES test_uuid_in_map.cpp LINK_LIBRARIES $<$<CXX_COMPILER_ID:MSVC>:bcrypt>)

boost_test(TYPE run SOURCES test_hash.cpp)
boost_test(TYPE run SOURCES test_md5.cpp)
boost_test(TYPE run SOURCES test_sha1.cpp)

boost_test(TYPE run SOURCES test_entropy_error.cpp)

boost_test(TYPE run SOURCES test_detail_random_provider.cpp)
boost_test(TYPE run SOURCES test_detail_random_provider.cpp LINK_LIBRARIES $<$<CXX_COMPILER_ID:MSVC>:bcrypt>)

boost_test(TYPE run SOURCES test_serialization.cpp LINK_LIBRARIES Boost::serialization)

0 comments on commit f32c817

Please sign in to comment.