Skip to content

Commit 1613eb2

Browse files
authored
Merge pull request #89 from olifre/adapt-ghaction-tests
gh-action: Adapt unittests to renamed CMake flags, fix using external gtest.
2 parents e63ead3 + 8ae3cf7 commit 1613eb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ccpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# Note the current convention is to use the -S and -B options here to specify source
4545
# and build directories, but this is only available with CMake 3.13 and higher.
4646
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
47-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UNITTESTS=yes -DEXTERNAL_GTEST=${{ matrix.external-gtest }}
47+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSCITOKENS_BUILD_UNITTESTS=yes -DSCITOKENS_EXTERNAL_GTEST=${{ matrix.external-gtest }}
4848

4949
- name: Build
5050
working-directory: ${{runner.workspace}}/build

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
add_executable(scitokens-gtest main.cpp)
3-
add_dependencies(scitokens-gtest gtest)
3+
if( NOT SCITOKENS_EXTERNAL_GTEST )
4+
add_dependencies(scitokens-gtest gtest)
5+
endif()
46
include_directories("${PROJECT_SOURCE_DIR}/vendor/gtest/googletest/include")
57

68
if(SCITOKENS_EXTERNAL_GTEST)

0 commit comments

Comments
 (0)