If it helps something, this is on Ubuntu 20.04, with g++ 9.40. and cmake 3.24.1
CTEST_USE_LAUNCHERS error only happens when the build cannot find the source (at least for me).
CTEST_USE_LAUNCHERS setting is really harmless.
If CTEST_USE_LAUNCHERS
itself is harmless, then there must be some other non-harmless setting tightly coupled to it. Because the build runs fine if I just change CTestScript.cmake
(line 53) to:
# Launchers work only with Makefile and Ninja generators.
#if(NOT "${CTEST_CMAKE_GENERATOR}" MATCHES "Make|Ninja")
set(CTEST_USE_LAUNCHERS 0)
set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 0)
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DCTEST_USE_LAUNCHERS:BOOL=OFF")
#else()
# set(CTEST_USE_LAUNCHERS 1)
# set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 1)
# set(BUILD_OPTIONS "${BUILD_OPTIONS} -DCTEST_USE_LAUNCHERS:BOOL=ON")
#endif()
Something basic is not setup or correct.
Can you start with a clean location and follow the steps in the INSTALL_CMake.txt file and just go with the defaults?
My automated build with which I have these problems follows these steps already (with changes and additions to HDF5config.cmake, as noted above, to speed up build times).
Just for testing, I now did a fresh manual build, with just the BUILD_SHARED_LIBS
and BUILD_TESTING
set to OFF
- same issue. After that, another completely fresh test build without changing any settings in HDF5options.cmake -> problem did not occur. Another test build with just BUILD_TESTING
to OFF -> problem appears.
Conclusion so far: Setting BUILD_TESTING
to OFF
is causing this issue, in conjunction with using Make/Ninja generator, and the CTEST_USE_LAUNCHERS
option set through HDF5’s CTestScript.cmake.