summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/GNU-Initialize.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-06 19:31:50 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-06 19:35:20 (GMT)
commit1d916bf3d2dad26682ed73c6cbed88babe28af7b (patch)
tree3b6730eb46abb521eabd568298523459737e447d /Modules/Platform/GNU-Initialize.cmake
parentc01091d2cf786f361a47a2875ba73d05c1642488 (diff)
downloadCMake-1d916bf3d2dad26682ed73c6cbed88babe28af7b.zip
CMake-1d916bf3d2dad26682ed73c6cbed88babe28af7b.tar.gz
CMake-1d916bf3d2dad26682ed73c6cbed88babe28af7b.tar.bz2
kFreeBSD,GNU: Provide multiarch library directory regex earlier
Make `CMAKE_LIBRARY_ARCHITECTURE_REGEX` available while determining compilers before `Platform/{kFreeBSD,GNU}` is loaded. Follow up commit cc737ae829 (Linux: Provide multiarch library directory regex earlier, 2023-05-31).
Diffstat (limited to 'Modules/Platform/GNU-Initialize.cmake')
-rw-r--r--Modules/Platform/GNU-Initialize.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/GNU-Initialize.cmake b/Modules/Platform/GNU-Initialize.cmake
new file mode 100644
index 0000000..37875ab
--- /dev/null
+++ b/Modules/Platform/GNU-Initialize.cmake
@@ -0,0 +1 @@
+set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*")