Skip to content

Commit

Permalink
Gcov is part of gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Oct 8, 2024
1 parent 8baeb09 commit bfbcd28
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cmake-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
steps:
- name: Install CMake Dependencies (Linux_coverage)
run: |
sudo apt-get update
sudo apt-get install ninja-build doxygen graphviz curl libncurses5
sudo apt-get install gcov -q -y
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl libncurses5 build-essential
sudo apt-get install lcov -q -y
- name: Set file base name (Linux_coverage)
Expand Down Expand Up @@ -123,7 +122,7 @@ jobs:
steps:
- name: Install CMake Dependencies (Linux_Leak)
run: |
sudo apt-get update
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl libncurses5
- name: add clang to env
Expand Down Expand Up @@ -219,7 +218,7 @@ jobs:
steps:
- name: Install CMake Dependencies (Linux_Address)
run: |
sudo apt-get update
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl libncurses5
- name: add clang to env
Expand Down
5 changes: 4 additions & 1 deletion config/cmake/JPEG/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(${JPEG_LIB_TARGET} PRIVATE -Wno-strict-prototypes)
endif ()
if (CMAKE_C_COMPILER_ID MATCHES "IntelLLVM" OR CMAKE_C_COMPILER_ID MATCHES "[Cc]lang")
target_compile_options(${JPEG_LIB_TARGET} PRIVATE -Wno-deprecated-non-prototype -Wno-strict-prototypes -Wno-implicit-function-declaration -Wno-typedef-redefinition)
target_compile_options(${JPEG_LIB_TARGET} PRIVATE -Wno-deprecated-non-prototype -Wno-strict-prototypes)
endif ()
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "[Cc]lang")
target_compile_options(${JPEG_LIB_TARGET} PRIVATE -Wno-implicit-function-declaration -Wno-typedef-redefinition)
endif ()
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(${JPEG_LIB_TARGET} PRIVATE -fmessage-length=0)
Expand Down
6 changes: 6 additions & 0 deletions hdf/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ if (BUILD_STATIC_LIBS)
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>;$<BUILD_INTERFACE:${HDF4_HDF_BINARY_DIR}>"
)
target_compile_options(${HDF4_SRC_LIB_TARGET} PRIVATE "${HDF4_CMAKE_C_FLAGS}")
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "[Cc]lang")
target_compile_options(${HDF4_SRC_LIB_TARGET} PRIVATE -Wno-implicit-function-declaration -Wno-typedef-redefinition)
endif ()
target_compile_definitions(${HDF4_SRC_LIB_TARGET}
PUBLIC
${HDF_EXTRA_C_FLAGS}
Expand Down Expand Up @@ -158,6 +161,9 @@ if (BUILD_SHARED_LIBS)
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>;$<BUILD_INTERFACE:${HDF4_HDF_BINARY_DIR}>"
)
target_compile_options(${HDF4_SRC_LIBSH_TARGET} PRIVATE "${HDF4_CMAKE_C_FLAGS}")
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "[Cc]lang")
target_compile_options(${HDF4_SRC_LIBSH_TARGET} PRIVATE -Wno-implicit-function-declaration -Wno-typedef-redefinition)
endif ()
target_compile_definitions(${HDF4_SRC_LIBSH_TARGET}
PUBLIC
${HDF_EXTRA_C_FLAGS}
Expand Down

0 comments on commit bfbcd28

Please sign in to comment.