Allow module names starting with digits

This was allowed with QMake.

Change-Id: Ia3052cd2086d633a343cfe59afddded2f79fc551
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Mike Krus 2020-05-31 11:34:05 +01:00
parent 6a6314df1e
commit 1d0384a385

View File

@ -855,8 +855,8 @@ function(qt_config_compile_test_x86simd extension label)
endfunction() endfunction()
function(qt_make_features_available target) function(qt_make_features_available target)
if(NOT "${target}" MATCHES "^${QT_CMAKE_EXPORT_NAMESPACE}::[a-zA-Z][a-zA-Z0-9_-]*$") if(NOT "${target}" MATCHES "^${QT_CMAKE_EXPORT_NAMESPACE}::[a-zA-Z0-9_-]*$")
message(FATAL_ERROR "${target} does not match ${QT_CMAKE_EXPORT_NAMESPACE}::[a-zA-Z][a-zA-Z0-9_-]*. INVALID NAME.") message(FATAL_ERROR "${target} does not match ${QT_CMAKE_EXPORT_NAMESPACE}::[a-zA-Z0-9_-]*. INVALID NAME.")
endif() endif()
if(NOT TARGET ${target}) if(NOT TARGET ${target})
message(FATAL_ERROR "${target} not found.") message(FATAL_ERROR "${target} not found.")