fix "examples-latency-optimization" to "examples-latency-optimization-evloop", make "lib-examples-evloop" as a dependency of "check"
@@ -463,7 +463,7 @@ ELSE (OPENSSL_FOUND)
SET_TARGET_PROPERTIES(libh2o-evloop PROPERTIES EXCLUDE_FROM_ALL 1)
ENDIF (OPENSSL_FOUND)
-ADD_CUSTOM_TARGET(lib-examples DEPENDS examples-http1client examples-simple examples-socket-client examples-latency-optimization)
+ADD_CUSTOM_TARGET(lib-examples DEPENDS examples-http1client examples-simple examples-socket-client)
IF (WSLAY_FOUND)
ADD_DEPENDENCIES(lib-examples examples-websocket)
ENDIF (WSLAY_FOUND)
@@ -471,13 +471,12 @@ ADD_EXECUTABLE(examples-http1client examples/libh2o/http1client.c)
ADD_EXECUTABLE(examples-socket-client examples/libh2o/socket-client.c)
ADD_EXECUTABLE(examples-simple examples/libh2o/simple.c)
ADD_EXECUTABLE(examples-websocket lib/websocket.c examples/libh2o/websocket.c)
-ADD_EXECUTABLE(examples-latency-optimization examples/libh2o/latency-optimization.c)
-ADD_CUSTOM_TARGET(lib-examples-evloop DEPENDS examples-http1client-evloop examples-simple-evloop examples-socket-client-evloop)
+ADD_CUSTOM_TARGET(lib-examples-evloop DEPENDS examples-http1client-evloop examples-simple-evloop examples-socket-client-evloop examples-latency-optimization-evloop)
IF (WSLAY_FOUND)
ADD_DEPENDENCIES(lib-examples-evloop examples-websocket-evloop)
ENDIF (WSLAY_FOUND)
-
+ADD_EXECUTABLE(examples-latency-optimization-evloop examples/libh2o/latency-optimization.c)
ADD_EXECUTABLE(examples-http1client-evloop examples/libh2o/http1client.c)
ADD_EXECUTABLE(examples-socket-client-evloop examples/libh2o/socket-client.c)
ADD_EXECUTABLE(examples-simple-evloop examples/libh2o/simple.c)
@@ -500,10 +499,10 @@ SET_TARGET_PROPERTIES(examples-websocket PROPERTIES
EXCLUDE_FROM_ALL 1)
TARGET_LINK_LIBRARIES(examples-websocket libh2o ${LIBUV_LIBRARIES} ${WSLAY_LIBRARIES} ${EXTRA_LIBS})
-SET_TARGET_PROPERTIES(examples-latency-optimization PROPERTIES
+SET_TARGET_PROPERTIES(examples-latency-optimization-evloop PROPERTIES
COMPILE_FLAGS "-DH2O_USE_LIBUV=0"
EXCLUDE_FROM_ALL 1)
-TARGET_LINK_LIBRARIES(examples-latency-optimization libh2o-evloop ${EXTRA_LIBS})
+TARGET_LINK_LIBRARIES(examples-latency-optimization-evloop libh2o-evloop ${EXTRA_LIBS})
SET_TARGET_PROPERTIES(examples-http1client-evloop PROPERTIES
COMPILE_FLAGS "-DH2O_USE_LIBUV=0"
@@ -658,6 +657,10 @@ IF (LIBUV_FOUND)
ENDIF ()
ENDIF ()
+IF (OPENSSL_FOUND)
+ ADD_DEPENDENCIES(check lib-examples-evloop)
+ENDIF ()
+
IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get/CMakeLists.txt)
ExternalProject_Add(h2get
CONFIGURE_COMMAND ${CMAKE_COMMAND} -DH2GET_SSL_ROOT_DIR=${H2GET_SSL_ROOT_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get
