diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-24 21:40:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 21:40:25 (GMT) |
commit | 9d90c37c96c8804169f5b0a6cf4174cfffc269e1 (patch) | |
tree | 5563bbbaca7c83e9845f10cce4e9cc3db7cf6f6e /config/sanitizer/code-coverage.cmake | |
parent | 1c8d7a2dc01ff61a7949f3da58afde3c59f2729b (diff) | |
download | hdf5-9d90c37c96c8804169f5b0a6cf4174cfffc269e1.zip hdf5-9d90c37c96c8804169f5b0a6cf4174cfffc269e1.tar.gz hdf5-9d90c37c96c8804169f5b0a6cf4174cfffc269e1.tar.bz2 |
Fix cmake dynamic analysis on windows (#1374)
Fix sanitizer flag form on windows
Add search paths to windows code-coverage
Diffstat (limited to 'config/sanitizer/code-coverage.cmake')
-rw-r--r-- | config/sanitizer/code-coverage.cmake | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/config/sanitizer/code-coverage.cmake b/config/sanitizer/code-coverage.cmake index c79aeac..e71bfd7 100644 --- a/config/sanitizer/code-coverage.cmake +++ b/config/sanitizer/code-coverage.cmake @@ -80,10 +80,17 @@ option( OFF) # Programs -find_program(LLVM_COV_PATH llvm-cov) -find_program(LLVM_PROFDATA_PATH llvm-profdata) -find_program(LCOV_PATH lcov) -find_program(GENHTML_PATH genhtml) +if(WIN32) + find_program(LLVM_COV_PATH llvm-cov PATHS ENV VS2019INSTALLDIR PATH_SUFFIXES "VC/Tools/Llvm/x64/bin") + find_program(LLVM_PROFDATA_PATH llvm-profdata PATHS ENV VS2019INSTALLDIR PATH_SUFFIXES "VC/Tools/Llvm/x64/bin") + find_program(LCOV_PATH lcov PATHS ENV VS2019INSTALLDIR PATH_SUFFIXES "VC/Tools/Llvm/x64/bin") + find_program(GENHTML_PATH genhtml PATHS ENV VS2019INSTALLDIR PATH_SUFFIXES "VC/Tools/Llvm/x64/bin") +else() + find_program(LLVM_COV_PATH llvm-cov) + find_program(LLVM_PROFDATA_PATH llvm-profdata) + find_program(LCOV_PATH lcov) + find_program(GENHTML_PATH genhtml) +endif() # Variables set(CMAKE_COVERAGE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/ccov) |