Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message for missing submodule if websocketspp is missing. #930

Merged
merged 1 commit into from
Oct 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add message for missing submodule if websocketspp is missing.
  • Loading branch information
BillyONeal committed Oct 23, 2018
commit 308447a30dbb6ccdde6114729b2aaeb040f0f9ac
6 changes: 4 additions & 2 deletions Release/cmake/cpprest_find_websocketpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ function(cpprest_find_websocketpp)
if(WEBSOCKETPP_FOUND)
message("-- Found websocketpp version " ${WEBSOCKETPP_VERSION} " on system")
set(WEBSOCKETPP_INCLUDE_DIR ${WEBSOCKETPP_INCLUDE_DIR} CACHE INTERNAL "")
else()
elseif(EXISTS ${PROJECT_SOURCE_DIR}/libs/websocketpp/CMakeLists.txt)
message("-- websocketpp not found, using the embedded version")
set(WEBSOCKETPP_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/libs/websocketpp CACHE INTERNAL "")
else()
message(FATAL_ERROR "-- websocketpp not found and embedded version not present; try `git submodule update --init` and run CMake again")
endif()

cpprest_find_boost()
Expand All @@ -22,4 +24,4 @@ function(cpprest_find_websocketpp)
cpprestsdk_boost_internal
cpprestsdk_openssl_internal
)
endfunction()
endfunction()