|
|
@@ -104,10 +104,8 @@ endfunction()
|
|
|
function(load_platform_info target)
|
|
|
if(target MATCHES "linux-")
|
|
|
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-linux-gnu[a-z0-9_]*" PARENT_SCOPE)
|
|
|
- set(CMAKE_LIBRARY_ARCHITECTURE_REGEX_VERSIONED "gcc/[a-z0-9_]+(-[a-z0-9_]+)?-linux(-gnu)?/[0-9]+(\\.[0-9]+\\.[0-9]+)*" PARENT_SCOPE)
|
|
|
else()
|
|
|
unset(CMAKE_LIBRARY_ARCHITECTURE_REGEX PARENT_SCOPE)
|
|
|
- unset(CMAKE_LIBRARY_ARCHITECTURE_REGEX_VERSIONED PARENT_SCOPE)
|
|
|
endif()
|
|
|
endfunction()
|
|
|
|
|
|
@@ -165,7 +163,7 @@ foreach(t ${targets})
|
|
|
message("${t} parse failed: state=${state}, '${idirs}' does not match '${idirs_output}'")
|
|
|
elseif(NOT "${implicit_libs}" STREQUAL "${implicit_lib_output}")
|
|
|
message("${t} parse failed: state=${state}, '${implicit_libs}' does not match '${implicit_lib_output}'")
|
|
|
- elseif(library_arch AND NOT "${library_arch}" STREQUAL "${library_arch_output}")
|
|
|
+ elseif((library_arch OR library_arch_output) AND NOT "${library_arch}" STREQUAL "${library_arch_output}")
|
|
|
message("${t} parse failed: state=${state}, '${library_arch}' does not match '${library_arch_output}'")
|
|
|
endif()
|
|
|
|