Skip to content

Commit f083605

Browse files
committed
Fix variable name and clarify version check
1 parent 57d10ee commit f083605

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

samples/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ add_subdirectory(validation)
1111
if(GRAPHQL_BUILD_HTTP_SAMPLE)
1212
find_package(Boost QUIET)
1313
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)
14+
if(Boost_VERSION VERSION_GREATER_EQUAL "1.81.0")
15+
if(EXISTS "${Boost_INCLUDE_DIR}/boost/beast.hpp")
16+
add_subdirectory(proxy)
17+
else()
18+
message(WARNING "GRAPHQL_BUILD_HTTP_SAMPLE requires the Boost.Beast header-only library, but it was not found in ${Boost_INCLUDE_DIR}.")
19+
endif()
1620
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}.")
21+
message(WARNING "GRAPHQL_BUILD_HTTP_SAMPLE requires the Boost.Beast header-only library >= 1.81.0, but only ${Boost_VERSION} was found in ${Boost_INCLUDE_DIR}.")
1822
endif()
1923
endif()
2024
endif()

0 commit comments

Comments
 (0)