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).
This commit is contained in:
Brad King
2023-06-06 15:31:50 -04:00
parent c01091d2cf
commit 1d916bf3d2
6 changed files with 9 additions and 7 deletions

View File

@@ -0,0 +1 @@
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*")

View File

@@ -35,6 +35,4 @@ else()
endif()
endif()
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*")
include(Platform/UnixPaths)

View File

@@ -0,0 +1,2 @@
include(Platform/GNU-Initialize)
unset(CMAKE_LIBRARY_ARCHITECTURE_REGEX)

View File

@@ -1,7 +1,6 @@
set(QNXNTO 1)
include(Platform/GNU)
unset(CMAKE_LIBRARY_ARCHITECTURE_REGEX)
set(CMAKE_DL_LIBS "")

View File

@@ -0,0 +1,5 @@
# kFreeBSD is a Debian GNU distribution with a kernel from FreeBSD,
# and should be marked as LINUX
include(Platform/Linux-Initialize)
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-kfreebsd-gnu[a-z0-9_]*")

View File

@@ -1,5 +1,2 @@
# kFreeBSD is a Debian GNU distribution with a kernel from FreeBSD,
# and should be marked as LINUX
# kFreeBSD is a Debian GNU distribution with a kernel from FreeBSD.
include(Platform/Linux)
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-kfreebsd-gnu[a-z0-9_]*")