Tests: Do not run LinkStatic test on AIX

System archive libraries like `/usr/lib/libm.a` contain shared objects.
This commit is contained in:
Naropanth Srikar Rao authored and Brad King committed 2026-10-29 12:04:33 -04:00
1 parent 9325f204e5
commit 84a54323d3
1 file changed
+1
+1
View File
@@ -2039,6 +2039,7 @@ if(BUILD_TESTING)
# Test static linking on toolchains known to support it.
if((CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "LCC")
AND NOT APPLE AND NOT WIN32 AND NOT CYGWIN
AND NOT CMAKE_SYSTEM_NAME STREQUAL "AIX"
AND EXISTS "/usr/lib/libm.a")
add_test(LinkStatic ${CMAKE_CTEST_COMMAND}
--build-and-test