diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a93a38d7501..b5fd500e8ea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -502,7 +502,7 @@ if(WITH_CRIMSON) target_compile_options(seastar PUBLIC # required by any target that links to seastar - "-Wno-non-virtual-dtor" + "$<$:-Wno-non-virtual-dtor>" PRIVATE "-DSEASTAR_NO_EXCEPTION_HACK" "-Wno-error"