Skip to content

Commit

Permalink
i#2250 VS2017: Fix more link errors with duplicate symbols (#2254)
Browse files Browse the repository at this point in the history
Extends the i#1805 duplicate symbol handling to all generators.

Issue: #1805, #2250
  • Loading branch information
derekbruening authored Feb 9, 2020
1 parent a47b800 commit 6875993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drltrace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ if (UNIX)
# to avoid conflicts with new declaration with "C" linkage in utils.h
append_property_string(TARGET drltracelib COMPILE_FLAGS "-DNOLINK_STRCASESTR")
endif()
if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
# i#1805: see comment in drstrace/CMakeLists.txt
if (WIN32)
# i#1805: see comment in drstrace/CMakeLists.txt. For VS2017 avoid _isdigit.
append_property_string(TARGET drltracelib LINK_FLAGS "/force:multiple")
endif ()

Expand Down
4 changes: 2 additions & 2 deletions drstrace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ if (WIN32)
# that we try multiple times (i#1925).
set_tests_properties(drstrace_unit_tests PROPERTIES TIMEOUT 240)

if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
# i#1805: avoid tolower dup symbol errors
if (WIN32)
# i#1805: avoid tolower dup symbol errors. For VS2017 avoid _isdigit.
append_property_string(TARGET drstrace_unit_tests LINK_FLAGS "/force:multiple")
endif ()
endif (WIN32)
Expand Down

0 comments on commit 6875993

Please sign in to comment.