Skip to content

Commit

Permalink
cmake fix for emscripten whole_archive support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed May 6, 2024
1 parent 2e06d2a commit 6ee997f
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
@@ -1,6 +1,6 @@

function (link_as_whole TARGET TYPE LIBRARY)
if(CMAKE_VERSION VERSION_GREATER 3.24)
if(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED)
target_link_libraries(${TARGET} ${TYPE} "$<LINK_LIBRARY:WHOLE_ARCHIVE,${LIBRARY}>")
else()
if (APPLE)
Expand Down

0 comments on commit 6ee997f

Please sign in to comment.