From ca67d9a9bf8723dd2064fd02ab66319fdaa255b4 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Mon, 4 Sep 2023 12:41:08 +0000 Subject: [PATCH] Loki_transform: Add NO_DERIVED_ARGS option to CMake wrappers --- cmake/loki_transform.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(