Skip to content

Commit

Permalink
added EXCLUDE_FROM_ALL to FetchContent_Declare
Browse files Browse the repository at this point in the history
  • Loading branch information
ozguronsoy committed Dec 11, 2024
1 parent 8f8f6bf commit 2c7df98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 81 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ jobs:
working-directory: ${{github.workspace}}
run: ./hephaudio_test

- name: (clang) Configure CMake
run: >
cmake
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DENABLE_TESTS=On
-DCMAKE_CXX_FLAGS='-w'
.
build_clang:
runs-on: ubuntu-latest
steps:
Expand All @@ -80,7 +70,7 @@ jobs:

- name: Install
working-directory: ${{github.workspace}}
run: sudo cmake --install .
run: cmake --install .

- name: Test
working-directory: ${{github.workspace}}
Expand Down
70 changes: 0 additions & 70 deletions .vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ if (ENABLE_TESTS)
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.15.2
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(googletest)

Expand Down

0 comments on commit 2c7df98

Please sign in to comment.