Commit 6625fcec authored by Brad King's avatar Brad King

Replace remove() with list(REMOVE_ITEM)

The remove() command is documented as discouraged and replaced by the
list(REMOVE_ITEM) command which has been around since CMake 2.6.0.

Change-Id: Ibd5a95ef9dc81eb09a28a344ef009d7f1511abf6
parent 38610bba
......@@ -61,7 +61,7 @@
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -31,7 +31,7 @@ include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -14,7 +14,7 @@ create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun ${vtk-module}CxxTests.cxx)
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)
## Add all executables
foreach(test ${TestsToRun})
......
......@@ -12,7 +12,7 @@ include(${QT_USE_FILE})
vtk_module_test_executable(${vtk-module}CxxTests ${Tests} QTestApp.cxx)
set(TestsToRun ${Tests})
remove(TestsToRun ${vtk-module}CxxTests.cxx)
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -12,7 +12,7 @@ create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun ${vtk-module}CxxTests.cxx)
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)
## Add all executables
foreach(test ${TestsToRun})
......
......@@ -15,7 +15,7 @@ if(VTK_DATA_ROOT)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -28,7 +28,7 @@ include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -9,7 +9,7 @@ if(VTK_DATA_ROOT)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -14,7 +14,7 @@ include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -8,7 +8,7 @@ include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -42,7 +42,7 @@ include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
remove(TestsToRun CxxTests.cxx)
list(REMOVE_ITEM TestsToRun CxxTests.cxx)
# Add all the executables
foreach(test ${TestsToRun})
......
......@@ -154,7 +154,7 @@ if(VTK_OPENGL_HAS_OSMESA AND OSMESA_LIBRARY)
endif()
set(TestsToRun ${Tests})
remove(TestsToRun ${vtk-module}CxxTests.cxx)
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)
# Add all the executables
foreach(test ${RenderingTests})
......
......@@ -24,7 +24,7 @@ add_executable(ExoIICTests ${ExoIICTests})
target_link_libraries(ExoIICTests vtkCommon vtkexoIIc vtkNetCDF)
set(TestsToRun ${ExoIICTests})
remove(TestsToRun ExoIICTests.cxx)
list(REMOVE_ITEM TestsToRun ExoIICTests.cxx)
foreach(test ${TestsToRun})
get_filename_component(TName ${test} NAME_WE)
......
......@@ -14,7 +14,7 @@ INCLUDE_DIRECTORIES(
ADD_EXECUTABLE( freerangeTests ${freerangeTestSrcs} )
SET( TestsToRun ${freerangeTestSrcs} )
REMOVE( TestsToRun freerangeTests.cxx )
LIST(REMOVE_ITEM TestsToRun freerangeTests.cxx )
FOREACH (test ${TestsToRun})
GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment