diff options
author | Modestas Vainius <modax@debian.org> | 2011-06-12 17:40:01 +0300 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-06-13 11:12:23 -0400 |
commit | 1ed19bcb25edc5f1911b5d0237db34426e747cd2 (patch) | |
tree | b40b7b0a07a346de153b02429e6f6b1275e6b089 /Modules/Platform/GNU.cmake | |
parent | 52a6ed2aed6ad2ed6880e76535359a6b45fda253 (diff) | |
download | cmake-1ed19bcb25edc5f1911b5d0237db34426e747cd2.tar.gz |
multiarch: Set CMAKE_LIBRARY_ARCHITECTURE_REGEX for Linux|Hurd|kFreeBSD
* Fix linux CMAKE_LIBRARY_ARCHITECTURE_REGEX to support armel-linux-gnueabi.
* Add CMAKE_LIBRARY_ARCHITECTURE_REGEX on kFreeBSD.
* Add CMAKE_LIBRARY_ARCHITECTURE_REGEX on GNU (Hurd).
Also regex is improved to support quadlets. Even if I have not seen this
in the wild yet, reportedly they are possible.
Diffstat (limited to 'Modules/Platform/GNU.cmake')
-rw-r--r-- | Modules/Platform/GNU.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/GNU.cmake b/Modules/Platform/GNU.cmake index e0ed86cb73..4bcfd51ce0 100644 --- a/Modules/Platform/GNU.cmake +++ b/Modules/Platform/GNU.cmake @@ -8,4 +8,6 @@ SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,") SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic") +SET(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*") + INCLUDE(Platform/UnixPaths) |