Skip to content

Commit 1430f7e

Browse files
committed
only add -DSTDEXEC_NAMESPACE=stdexec for nvhpc 26.3+
1 parent 5c5ec69 commit 1430f7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
add_library(stdexec_example_settings INTERFACE)
1818

19-
target_compile_definitions(stdexec_example_settings INTERFACE STDEXEC_NAMESPACE=stdexec)
19+
target_compile_definitions(stdexec_example_settings INTERFACE
20+
$<$<AND:$<CXX_COMPILER_ID:NVHPC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,26.3.0>>:STDEXEC_NAMESPACE=stdexec>)
2021

2122
function(split pair name_out path_out)
2223
string(STRIP "${pair}" pair)

0 commit comments

Comments
 (0)