mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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:
2
Modules/Platform/Linux-Initialize.cmake
Normal file
2
Modules/Platform/Linux-Initialize.cmake
Normal 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_]*")
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user