CMake: scripts: Treat libraries mapped to None as known

This detects doubleconversion as a 3rd party library.

This fixes defaulting QT_FEATURE_system_doubleconversion to 'ON'.

Change-Id: I9d18dbbb6f7a99f6a5c674bed3013b96f19bf6e0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tobias Hunger 2019-05-06 16:44:31 +02:00
parent bbe5c58079
commit d5018720db

View File

@ -324,7 +324,7 @@ def is_known_3rd_party_library(lib: str) -> bool:
lib = lib[:-7]
mapping = find_3rd_party_library_mapping(lib)
return mapping is not None and mapping.targetName is not None
return mapping is not None
def map_3rd_party_library(lib: str) -> str: