File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 4141 run : |
4242 $cmakeBuildType = '${{ matrix.config }}'
4343
44- cmake "-DCMAKE_BUILD_TYPE=$cmakeBuildType" -G Ninja ${{ github.workspace }}
44+ cmake "-DCMAKE_BUILD_TYPE=$cmakeBuildType" "-DGRAPHQL_BUILD_HTTP_SAMPLE=OFF" -G Ninja ${{ github.workspace }}
4545
4646 - name : Build
4747 working-directory : build/
Original file line number Diff line number Diff line change @@ -9,9 +9,12 @@ add_subdirectory(today)
99add_subdirectory (validation)
1010
1111if (GRAPHQL_BUILD_HTTP_SAMPLE)
12- if (EXISTS "${Boost_INCLUDE_DIR} /boost/beast.hpp" )
13- add_subdirectory (proxy)
14- else ()
15- message (WARNING "GRAPHQL_BUILD_HTTP_SAMPLE requires the Boost.Beast header-only library. Not found in ${Boost_INCLUDE_DIR} ." )
12+ find_package (Boost QUIET )
13+ if (Boost_FOUND)
14+ if (Boost_VERSIION VERSION_GREATER_EQUAL "1.81.0" AND EXISTS "${Boost_INCLUDE_DIR} /boost/beast.hpp" )
15+ add_subdirectory (proxy)
16+ else ()
17+ message (WARNING "GRAPHQL_BUILD_HTTP_SAMPLE requires the Boost.Beast header-only library >= 1.81.0, but it was not found in ${Boost_INCLUDE_DIR} ." )
18+ endif ()
1619 endif ()
1720endif ()
You can’t perform that action at this time.
0 commit comments