From 8ac302be084b32581372058a1fce1001902abdff Mon Sep 17 00:00:00 2001 From: Chris White Date: Mon, 12 Jul 2021 18:25:57 -0700 Subject: [PATCH] check for the existance of the target not treat it like a constant, variable, or a string --- src/config/conduit_setup_deps.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/conduit_setup_deps.cmake b/src/config/conduit_setup_deps.cmake index 4729f7e2b..b5490fd44 100644 --- a/src/config/conduit_setup_deps.cmake +++ b/src/config/conduit_setup_deps.cmake @@ -10,7 +10,7 @@ include(CMakeFindDependencyMacro) if(UNIX AND NOT APPLE) # we depend on Threads::Threads in our exported targets # so we need to bootstrap that here - if(NOT Threads::Threads) + if(NOT TARGET Threads::Threads) find_package( Threads REQUIRED ) endif() endif()