Skip to content

Commit

Permalink
Merge pull request #226 from jcelerier/patch-2
Browse files Browse the repository at this point in the history
Another Win32 CMake portability fix
  • Loading branch information
dancazarin committed Apr 28, 2024
2 parents 3cf9f10 + f552aab commit 205ce82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/link_as_whole.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function (link_as_whole TARGET TYPE LIBRARY)
if (APPLE)
target_link_options(${TARGET} ${TYPE} "LINKER:-force_load,$<TARGET_FILE:${LIBRARY}>")
elseif (WIN32)
elseif (MSVC)
target_link_options(${TARGET} ${TYPE}
/WHOLEARCHIVE:$<TARGET_FILE:${LIBRARY}>)
else ()
Expand Down

0 comments on commit 205ce82

Please sign in to comment.