CMake/Tests/SharedLibraryArchive/nosla-check.cmake
Brad King 5c78623143 AIX: Enable shared library archives by default
This is the preferred convention for shared libraries on AIX.
Add policy CMP0182 to provide compatibility.

Closes: #26372
2024-11-23 15:23:25 -05:00

7 lines
223 B
CMake

if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
set(nosla_regex "/lib${name}\\.so$")
if(NOT nosla MATCHES "${nosla_regex}")
message(FATAL_ERROR "nosla library does not look like a shared object:\n ${nosla}")
endif()
endif()