From f3092e286e8dc8ca7a2c6f2b89cb413f806944d2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 May 2022 12:20:30 -0700 Subject: [PATCH] Search for Oboe config modules first --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a3ce192..4442fdb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1143,8 +1143,11 @@ if(ANDROID) set(OBOE_TARGET oboe) else() - find_package(Oboe) - if(OBOE_FOUND) + find_package(oboe CONFIG) + if(NOT TARGET oboe::oboe) + find_package(Oboe) + endif() + if(TARGET oboe::oboe) set(OBOE_TARGET "oboe::oboe") endif() endif() -- 2.11.4.GIT