From 764250dfce33b6c41770527daecee651a9cd9a97 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Wed, 23 Jun 2021 17:28:40 +0200 Subject: [PATCH] Detect ign instead of using cmake module to check for ignition-tools --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35f652714..cd882158c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,11 +68,8 @@ ign_find_package(ignition-msgs5 REQUIRED) set(IGN_MSGS_VER ${ignition-msgs5_VERSION_MAJOR}) #-------------------------------------- -# Find ignition-tools -ign_find_package(ignition-tools QUIET) -if (ignition-tools_FOUND) - set (HAVE_IGN_TOOLS TRUE) -endif() +# Find if ign command is available +find_program(HAVE_IGN_TOOLS ign) #-------------------------------------- # Find QT