Skip to content

Commit

Permalink
TEST: CMake: Remove unused/unneeded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jun 20, 2023
1 parent a9c75de commit 6437359
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ message("LPYTHON_RTLIB_DIR: ${LPYTHON_RTLIB_DIR}")
message("LPYTHON_RTLIB_LIBRARY: ${LPYTHON_RTLIB_LIBRARY}")


macro(RUN_UTIL RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_ENABLE_CPYTHON RUN_EXTRAFILES RUN_EXTRA_ARGS)
macro(RUN_UTIL RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_EXTRAFILES RUN_EXTRA_ARGS)
set(fail ${${RUN_FAIL}})
set(name ${${RUN_NAME}})
set(file_name ${${RUN_FILE_NAME}})
set(labels ${${RUN_LABELS}})
set(run_enable_cpython ${${RUN_ENABLE_CPYTHON}})
set(extra_files ${${RUN_EXTRAFILES}})
set(extra_args ${${RUN_EXTRA_ARGS}})

Expand Down Expand Up @@ -273,7 +272,6 @@ macro(RUN)

if (RUN_LINK_NUMPY)
set(RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --link-numpy)
set(RUN_ENABLE_CPYTHON TRUE)
endif()

if (RUN_ENABLE_CPYTHON)
Expand All @@ -286,13 +284,13 @@ macro(RUN)
set(RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} -I${CMAKE_CURRENT_SOURCE_DIR}/${RUN_IMPORT_PATH})
endif()

RUN_UTIL(RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_ENABLE_CPYTHON RUN_EXTRAFILES RUN_EXTRA_ARGS)
RUN_UTIL(RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_EXTRAFILES RUN_EXTRA_ARGS)

if ((NOT DISABLE_FAST) AND (NOT RUN_NOFAST))
set(RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --fast)
set(RUN_NAME "${RUN_NAME}_FAST")
list(REMOVE_ITEM RUN_LABELS cpython cpython_sym) # remove cpython, cpython_sym, from --fast test
RUN_UTIL(RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_ENABLE_CPYTHON RUN_EXTRAFILES RUN_EXTRA_ARGS)
RUN_UTIL(RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_EXTRAFILES RUN_EXTRA_ARGS)
endif()
endmacro(RUN)

Expand Down

0 comments on commit 6437359

Please sign in to comment.