From b3fde5ac79ecaff34d6ba0e0392a923745e69d4a Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Wed, 6 Nov 2024 13:30:42 +0100 Subject: [PATCH] fix condition --- cmake/carmaDependencyTargets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/carmaDependencyTargets.cmake b/cmake/carmaDependencyTargets.cmake index 527910c..f1608ad 100644 --- a/cmake/carmaDependencyTargets.cmake +++ b/cmake/carmaDependencyTargets.cmake @@ -45,7 +45,7 @@ IF (NOT TARGET armadillo::armadillo) ENDIF () ENDIF () IF (TARGET armadillo::armadillo) - if(NOT ARMADILLO_INCLUDE_DIRS OR NOT ARMADILLO_LIBRARIES) + if(NOT ARMADILLO_INCLUDE_DIRS) message(FATAL_ERROR "armadillo::armadillo is a target but ARMADILLO_INCLUDE_DIRS is not set.") ENDIF () LIST(APPEND carma_INCLUDE_DIRS ${ARMADILLO_INCLUDE_DIRS})