mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Tests: Do not run LinkStatic test on AIX
System archive libraries like `/usr/lib/libm.a` contain shared objects.
This commit is contained in:
1 parent
9325f204e5
commit
84a54323d3
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user