Skip to content

Commit cc208a1

Browse files
committed
cmake: add cpp_integration_testing to RUSTFLAGS for examples
`cpp_integration_testing` is now required to build examples, because some of them use functions that are only available when `cpp_integration_testing` config option is enabled (because they are only implemented as stubs for testing purposes).
1 parent 83f6912 commit cc208a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla-rust-wrapper/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ else()
2727
set(CMAKE_Rust_FLAGS "--cfg cpp_rust_unstable")
2828
endif()
2929

30-
if(CASS_BUILD_INTEGRATION_TESTS)
30+
if(CASS_BUILD_INTEGRATION_TESTS OR CASS_BUILD_EXAMPLES)
3131
set(CMAKE_Rust_FLAGS "${CMAKE_Rust_FLAGS} --cfg cpp_integration_testing")
3232
endif()
3333

0 commit comments

Comments
 (0)