Skip to content

Commit d2ef021

Browse files
committed
Add ClangCL/lld-link.exe's warning to TargetExportScript.cmake
1 parent cf42399 commit d2ef021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/TargetExportScript.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function(target_export_script TARGET)
1212
set(dummy_source [[ int main() { return 0; } ]])
1313
set(is_shared "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>")
1414

15-
# CMake doesn't recognize MSVC/link.exe's unknown-option warning.
16-
set(extra_errors FAIL_REGEX "LNK4044: unrecognized option")
15+
# CMake doesn't recognize MSVC/ldd link.exe's unknown-option warnings
16+
set(extra_errors FAIL_REGEX "LNK4044: unrecognized option|warning : ignoring unknown argument")
1717

1818
## More linkers support the GNU syntax (ld, lld, gold), so try it first.
1919
set(version_script "LINKER:--version-script=${ARG_GNU_LD}")

0 commit comments

Comments
 (0)