From db701421a53539be35ad88bbab7d2cd851b712b6 Mon Sep 17 00:00:00 2001 From: Fuad Hasan Date: Mon, 31 Aug 2026 15:52:34 -0400 Subject: [PATCH] language guard for gpu code compiler flag fixes #220 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 35af9a15..6a50cd17 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -254,7 +254,7 @@ if(Omega_h_USE_DOLFIN) endif() if(Kokkos_ENABLE_CUDA) - target_compile_options(omega_h PUBLIC "--expt-extended-lambda") + target_compile_options(omega_h PUBLIC "$<$:--expt-extended-lambda>") endif() if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")