Skip to content

Commit

Permalink
cmake/FindRust.cmake: strip MSVC linker flags ...
Browse files Browse the repository at this point in the history
... from native libraries array. Otherwise Ninja will get very confused.
  • Loading branch information
liushuyu committed Jul 11, 2024
1 parent 7b9eef7 commit 83d0cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ foreach(LINE ${LINE_LIST})
string(REPLACE "native-static-libs: " "" LINE "${LINE}")
string(REGEX REPLACE " " "" LINE "${LINE}")
string(REGEX REPLACE " " ";" LINE "${LINE}")
# remove linker flags
list(FILTER LINE EXCLUDE REGEX "/.*")

if(LINE)
message(STATUS "Rust's native static libs: ${LINE}")
Expand Down

0 comments on commit 83d0cd3

Please sign in to comment.