Skip to content

Commit

Permalink
fix clang 18 clp issue by changing clp headers to be included as SYST…
Browse files Browse the repository at this point in the history
…EM (-isystem) headers
  • Loading branch information
davidlion committed Jun 3, 2024
1 parent 4cfc078 commit 131ef7b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ jobs:
if: "${{ matrix.os == 'macos-latest' }}"
run: |
brew update
brew install cmake gcc
brew install llvm@18
- name: "Install clang/llvm"
- name: "Linux: install clang/llvm"
if: "${{ matrix.os == 'ubuntu-latest' }}"
run: |
pip install clang-format clang-tidy
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt install clang-format-18 clang-tidy-18
- name: "Build for compile commands.json"
run: |
Expand Down
6 changes: 5 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ target_compile_options(${LIB_NAME}
)

target_include_directories(${LIB_NAME}
PRIVATE
SYSTEM PRIVATE
${CLP_SRC_DIR}/components/core/submodules
${CMAKE_CURRENT_SOURCE_DIR}
)

target_include_directories(${LIB_NAME}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)

Expand Down
Binary file removed lib/libclp_ffi_darwin_arm64.a
Binary file not shown.

0 comments on commit 131ef7b

Please sign in to comment.