瀏覽代碼

Merge pull request #24 from gunrot/objectlibfix

handle objeclib only input for target
master
Matt Arsenault 7 年之前
committed by GitHub
父節點
當前提交
e63f5614f7
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      cmake/FindSanitizers.cmake

+ 5
- 5
cmake/FindSanitizers.cmake 查看文件

@@ -77,12 +77,12 @@ function(add_sanitizers ...)
"Target will be compiled without sanitizers.")
return()

# If the target is compiled by no known compiler, ignore it.
# If the target is compiled by no or no known compiler, give a warning.
elseif (NUM_COMPILERS EQUAL 0)
message(WARNING "Can't use any sanitizers for target ${TARGET}, "
"because it uses an unknown compiler. Target will be "
"compiled without sanitizers.")
return()
message(WARNING "Sanitizers for target ${TARGET} may not be"
" usable, because it uses no or an unknown compiler. "
"This is a false warning for targets using only "
"object lib(s) as input.")
endif ()

# Add sanitizers for target.


Loading…
取消
儲存