ctest -R cpack fails on UNIX, various lists not set
ctest -R cpack fails on UNIX with superbuild because certain variables and lists are not set.
opt/jenkins/jenkins-tools/cmake/3.12.2/bin/cmake "-Dname=modelbuilder" "-Dcmake_generator=Ninja" "-Dcpack_generator=TGZ" "-Doutput_directory=/opt/jenkins/workspace/corey/new_sb/_build" "-Dsource_directory=/opt/jenkins/workspace/corey/new_sb/_build/cpack/modelbuilder/TGZ" "-Dbuild_directory=/opt/jenkins/workspace/corey/new_sb/_build/cpack/modelbuilder/TGZ/build" "-P" "/opt/jenkins/workspace/corey/new_sb/cmb-superbuild/superbuild/cmake/scripts/package_test.cmake"
CTEST_FULL_OUTPUT
-- modelbuilder_enabled is
-- ################### ###############3
CMake Error at /opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/cmb.bundle.common.cmake:123 (list):
list sub-command REMOVE_ITEM requires list to be present.
Call Stack (most recent call first):
/opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/modelbuilder.bundle.common.cmake:15 (include)
/opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/unix/modelbuilder.bundle.cmake:4 (include)
CMakeLists.txt:42 (include)
CMake Error at /opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/cmb.bundle.common.cmake:150 (list):
list sub-command REMOVE_ITEM requires list to be present.
Call Stack (most recent call first):
/opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/modelbuilder.bundle.common.cmake:15 (include)
/opt/jenkins/workspace/corey/new_sb/cmb-superbuild/projects/unix/modelbuilder.bundle.cmake:4 (include)
CMakeLists.txt:42 (include)
-- Configuring incomplete, errors occurred!
See also "/opt/jenkins/workspace/corey/new_sb/_build/cpack/modelbuilder/TGZ/build/CMakeFiles/CMakeOutput.log".
CMake Error at /opt/jenkins/workspace/corey/new_sb/cmb-superbuild/superbuild/cmake/scripts/package_test.cmake:12 (message):
CMake failed with exit code 1
Problem is either modelbuilder_enabled is never being set so it does not roll through the list of plugins never creates the list to perform the REMOVE_ITEM operation on or an empty list of cmb_plugin_files is no being created so the REMOVE_ITEM complains that the list doesn't exist. . This happens for cmb_plugin_files and aevasession_plugin_files
Edited by Ben Boeckel