Linux: Provide multiarch library directory regex earlier

Make `CMAKE_LIBRARY_ARCHITECTURE_REGEX` available while determining
compilers before `Platform/Linux` is loaded.
This commit is contained in:
Brad King
2023-05-31 16:32:45 -04:00
parent 2624006608
commit cc737ae829
2 changed files with 2 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
# Match multiarch library directory names.
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-linux-gnu[a-z0-9_]*")

View File

@@ -80,9 +80,6 @@ else()
endif()
endif()
# Match multiarch library directory names.
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-linux-gnu[a-z0-9_]*")
include(Platform/UnixPaths)
# Debian has lib32 and lib64 paths only for compatibility so they should not be