cmake: Only use the doubleconversion cmake config if "valid"
And by "valid" i mean if it returns the double-conversion::double-conversion target that we are going to use later. Fedora rawhide has a doubleconversion cmake config file but it doesn't define any target Change-Id: Ib0360bc9fdf593a14510c9a2d59b47b32bc4b356 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
773999816e
commit
b6306cb066
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
find_package(double-conversion CONFIG)
|
find_package(double-conversion CONFIG)
|
||||||
if (double-conversion_FOUND)
|
if (double-conversion_FOUND)
|
||||||
return()
|
if(TARGET double-conversion::double-conversion)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_path(DOUBLE_CONVERSION_INCLUDE_DIR
|
find_path(DOUBLE_CONVERSION_INCLUDE_DIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user