From 31d19f3d9256c63a5183949ea45c68c8a0a320ae Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Fri, 19 Jul 2024 10:39:50 -0700 Subject: [PATCH] Set conan_provide_dependency_check variables to lower-case snake-case --- conan_provider.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conan_provider.cmake b/conan_provider.cmake index 3ee6fda1..b6435127 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -642,19 +642,19 @@ cmake_language( macro(conan_provide_dependency_check) - set(_CONAN_PROVIDE_DEPENDENCY_INVOKED FALSE) - get_property(_CONAN_PROVIDE_DEPENDENCY_INVOKED GLOBAL PROPERTY CONAN_PROVIDE_DEPENDENCY_INVOKED) - if(NOT _CONAN_PROVIDE_DEPENDENCY_INVOKED) + set(_conan_provide_dependency_invoked FALSE) + get_property(_conan_provide_dependency_invoked GLOBAL PROPERTY CONAN_PROVIDE_DEPENDENCY_INVOKED) + if(NOT _conan_provide_dependency_invoked) message(WARNING "Conan is correctly configured as dependency provider, " "but Conan has not been invoked. Please add at least one " "call to `find_package()`.") if(DEFINED CONAN_COMMAND) # supress warning in case `CONAN_COMMAND` was specified but unused. - set(_CONAN_COMMAND ${CONAN_COMMAND}) - unset(_CONAN_COMMAND) + set(_conan_command ${CONAN_COMMAND}) + unset(_conan_command) endif() endif() - unset(_CONAN_PROVIDE_DEPENDENCY_INVOKED) + unset(_conan_provide_dependency_invoked) endmacro()