diff --git a/Modules/Platform/Linux-Initialize.cmake b/Modules/Platform/Linux-Initialize.cmake new file mode 100644 index 0000000000..6d9cbae486 --- /dev/null +++ b/Modules/Platform/Linux-Initialize.cmake @@ -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_]*") diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake index 3dc3ca3599..1f2d8e6ce1 100644 --- a/Modules/Platform/Linux.cmake +++ b/Modules/Platform/Linux.cmake @@ -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