File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ function(cpprest_find_websocketpp)
7
7
if (WEBSOCKETPP_FOUND)
8
8
message ("-- Found websocketpp version " ${WEBSOCKETPP_VERSION} " on system" )
9
9
set (WEBSOCKETPP_INCLUDE_DIR ${WEBSOCKETPP_INCLUDE_DIR} CACHE INTERNAL "" )
10
- else ( )
10
+ elseif ( EXISTS ${PROJECT_SOURCE_DIR} /libs/websocketpp/CMakeLists.txt )
11
11
message ("-- websocketpp not found, using the embedded version" )
12
12
set (WEBSOCKETPP_INCLUDE_DIR ${PROJECT_SOURCE_DIR} /libs/websocketpp CACHE INTERNAL "" )
13
+ else ()
14
+ message (FATAL_ERROR "-- websocketpp not found and embedded version not present; try `git submodule update --init` and run CMake again" )
13
15
endif ()
14
16
15
17
cpprest_find_boost()
@@ -22,4 +24,4 @@ function(cpprest_find_websocketpp)
22
24
cpprestsdk_boost_internal
23
25
cpprestsdk_openssl_internal
24
26
)
25
- endfunction ()
27
+ endfunction ()
You can’t perform that action at this time.
0 commit comments