Skip to content

Commit 83f6912

Browse files
committed
cmake: link libuv for examples
Some examples, e.g. `callbacks`, require libuv, so we enable it when building examples.
1 parent c05137c commit 83f6912

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ if(CASS_BUILD_INTEGRATION_TESTS OR CASS_BUILD_UNIT_TESTS)
6969
set(CASS_USE_LIBUV ON)
7070
endif()
7171

72+
if(CASS_BUILD_EXAMPLES)
73+
set(CASS_USE_LIBUV ON) # Some examples require libuv, e.g. "callbacks".
74+
endif()
75+
7276
# Determine which driver target should be used as a dependency
7377
set(PROJECT_LIB_NAME_TARGET scylla-cpp-driver)
7478
if(CASS_USE_STATIC_LIBS OR

0 commit comments

Comments
 (0)