Skip to content

Commit

Permalink
add & use our gtest as host-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Apr 19, 2023
1 parent 0dbdaf1 commit 1477912
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipe/build-abseil.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ cmake -GNinja ^
-DABSL_BUILD_TEST_HELPERS=ON ^
-DABSL_BUILD_TESTING=ON ^
-DABSL_PROPAGATE_CXX_STD=ON ^
-DABSL_USE_EXTERNAL_GOOGLETEST=ON ^
-DABSL_FIND_GOOGLETEST=ON ^
..
if %ERRORLEVEL% neq 0 exit 1

Expand Down
2 changes: 2 additions & 0 deletions recipe/build-abseil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cmake ${CMAKE_ARGS} \
-DBUILD_TESTING=ON \
-DABSL_BUILD_TESTING=ON \
-DABSL_PROPAGATE_CXX_STD=ON \
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
-DABSL_FIND_GOOGLETEST=ON \
-GNinja \
..

Expand Down
4 changes: 4 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ outputs:
- {{ compiler('cxx') }}
- cmake
- ninja
host:
- gtest
# ... which also depends on
- gmock
run_constrained:
- libabseil-static ={{ version }}=cxx{{ cxx_standard }}*
# make sure we don't co-install with old version of old package name
Expand Down

0 comments on commit 1477912

Please sign in to comment.