Repository navigation
CMake: Disable test_prep targets - #6296
Conversation
|
I think for the OpenBLAS codebase as such, there is little if any value in having a separate build step for "prerequisites for building the test executables", as the only prerequisite would appear to be the library itself. My current understanding is that the new option would be valuable for a complex project comprising several third-party libraries, where one would want to build and run a global ctest only when all components are in place and considered stable enough. Perhaps it would be unfair to deny such use when OpenBLAS is the subproject ? I will raise this issue with the Reference-LAPACK project where the potentially problematic test names originated. Perhaps as an additional safeguard in addition to Brad's suggestion, the |
Co-authored-by: Brad King <brad.king@kitware.com>
|
@martin-frbg I've pulled in the change from @bradking and then incorporated your suggestion. Please take a look |
|
Great, thanks. This should fix the immediate issue, and if Reference-LAPACK decides to adjust their test names to fix the root cause, we can follow suit later. (I haven't even gotten around to creating the issue there yet...) |
Closes #6294
This PR disables the
test_preptargets that come with CMake 4.5. If building with the GNU Make generator, the test targets inlapack-netlibthat have colons throw warnings:For now disable the targets and if users want them they should:
-DCMAKE_SKIP_TEST_PREP_TARGETS=ON