Skip to content

Commit

Permalink
CMake: Remove custom "convert" options from CMake macros
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Jan 9, 2025
1 parent b7e31c2 commit ea925f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
20 changes: 0 additions & 20 deletions cmake/loki_transform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -291,26 +291,6 @@ function( loki_transform_target )
list( APPEND _TRANSFORM_OPTIONS CPP )
endif()

if( _PAR_T_INLINE_MEMBERS )
list( APPEND _TRANSFORM_OPTIONS INLINE_MEMBERS )
endif()

if( _PAR_T_RESOLVE_SEQUENCE_ASSOCIATION )
list( APPEND _TRANSFORM_OPTIONS RESOLVE_SEQUENCE_ASSOCIATION )
endif()

if( _PAR_T_DERIVE_ARGUMENT_ARRAY_SHAPE )
list( APPEND _TRANSFORM_OPTIONS DERIVE_ARGUMENT_ARRAY_SHAPE )
endif()

if( _PAR_T_TRIM_VECTOR_SECTIONS )
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
35 changes: 0 additions & 35 deletions cmake/loki_transform_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,41 +84,6 @@ macro( _loki_transform_parse_options )
list( APPEND _ARGS --cpp )
endif()

if( _PAR_DATA_OFFLOAD )
list( APPEND _ARGS --data-offload )
endif()

if( _PAR_REMOVE_OPENMP )
list( APPEND _ARGS --remove-openmp )
endif()

if( _PAR_ASSUME_DEVICEPTR )
list( APPEND _ARGS --assume-deviceptr )
endif()

if( _PAR_GLOBAL_VAR_OFFLOAD )
list( APPEND _ARGS --global-var-offload )
endif()

if( _PAR_TRIM_VECTOR_SECTIONS )
list( APPEND _ARGS --trim-vector-sections )
endif()

if( _PAR_REMOVE_DERIVED_ARGS )
list( APPEND _ARGS --remove-derived-args )
endif()

if( _PAR_INLINE_MEMBERS )
list( APPEND _ARGS --inline-members )
endif()

if( _PAR_RESOLVE_SEQUENCE_ASSOCIATION )
list( APPEND _ARGS --resolve-sequence-association )
endif()

if( _PAR_DERIVE_ARGUMENT_ARRAY_SHAPE )
list( APPEND _ARGS --derive-argument-array-shape )
endif()

endmacro()

Expand Down

0 comments on commit ea925f8

Please sign in to comment.