Skip to content

Commit

Permalink
Disable compiler extensions on CCCL targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Oct 10, 2024
1 parent 87ef1d5 commit 36ffad2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/CCCLConfigureTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ function(cccl_configure_target target_name)

get_target_property(type ${target_name} TYPE)

set_target_properties(${target_name}
PROPERTIES
# Disable compiler extensions:
CXX_EXTENSIONS OFF
CUDA_EXTENSIONS OFF
)

if (DEFINED CCT_DIALECT)
set_target_properties(${target_name}
PROPERTIES
Expand Down

0 comments on commit 36ffad2

Please sign in to comment.