Skip to content

Commit

Permalink
CMAKE: add GLOBAL_VAR_OFFLOAD arg to loki_transform_target
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Mar 28, 2024
1 parent 0a15267 commit f0fa480
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/loki_transform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function( loki_transform_target )

set( options
NO_PLAN_SOURCEDIR COPY_UNMODIFIED CPP CPP_PLAN INLINE_MEMBERS
RESOLVE_SEQUENCE_ASSOCIATION DERIVE_ARGUMENT_ARRAY_SHAPE TRIM_VECTOR_SECTIONS
RESOLVE_SEQUENCE_ASSOCIATION DERIVE_ARGUMENT_ARRAY_SHAPE TRIM_VECTOR_SECTIONS GLOBAL_VAR_OFFLOAD
)
set( single_value_args TARGET COMMAND MODE DIRECTIVE FRONTEND CONFIG PLAN )
set( multi_value_args SOURCES HEADERS DEFINITIONS )
Expand Down Expand Up @@ -307,6 +307,10 @@ function( loki_transform_target )
list( APPEND _TRANSFORM_OPTIONS TRIM_VECTOR_SECTIONS )
endif()

if( _PAR_T_GLOBAL_VAR_OFFLOAD )
list( APPEND _TRANSFORM_OPTIONS GLOBAL_VAR_OFFLOAD )
endif()

loki_transform(
COMMAND ${_PAR_T_COMMAND}
OUTPUT ${LOKI_SOURCES_TO_APPEND}
Expand Down

0 comments on commit f0fa480

Please sign in to comment.