diff --git a/cmake/loki_transform.cmake b/cmake/loki_transform.cmake index 77ef772b7..f94f6d09d 100644 --- a/cmake/loki_transform.cmake +++ b/cmake/loki_transform.cmake @@ -182,7 +182,7 @@ endmacro() # [OMNI_INCLUDE [ ...]] # [XMOD [ ...]] # [REMOVE_OPENMP] [DATA_OFFLOAD] [GLOBAL_VAR_OFFLOAD] -# [TRIM_VECTOR_SECTIONS] +# [TRIM_VECTOR_SECTIONS] [NO_REMOVE_DERIVED_ARGS] # ) # # Call ``loki-transform.py convert ...`` with the provided arguments. @@ -199,7 +199,7 @@ endmacro() function( loki_transform_convert ) - set( options CPP DATA_OFFLOAD REMOVE_OPENMP GLOBAL_VAR_OFFLOAD TRIM_VECTOR_SECTIONS ) + set( options CPP DATA_OFFLOAD REMOVE_OPENMP GLOBAL_VAR_OFFLOAD TRIM_VECTOR_SECTIONS NO_REMOVE_DERIVED_ARGS ) set( oneValueArgs MODE DIRECTIVE FRONTEND CONFIG PATH OUTPATH ) set( multiValueArgs OUTPUT DEPENDS INCLUDES INCLUDE HEADERS HEADER DEFINITIONS DEFINE OMNI_INCLUDE XMOD ) @@ -244,6 +244,10 @@ function( loki_transform_convert ) list( APPEND _ARGS --trim-vector-sections ) endif() + if( ${_PAR_NO_REMOVE_DERIVED_ARGS} ) + list( APPEND _ARGS --no-remove-derived-args ) + endif() + _loki_transform_env_setup() add_custom_command(