diff --git a/conan_provider.cmake b/conan_provider.cmake index 61dafad3..baf5af9a 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -1,5 +1,4 @@ set(CONAN_MINIMUM_VERSION 2.0.5) -set(CONANFILE_DIR "${CMAKE_SOURCE_DIR}") function(detect_os OS OS_API_LEVEL OS_SDK OS_SUBSYSTEM OS_VERSION) # it could be cross compilation @@ -619,6 +618,7 @@ cmake_language(DEFER DIRECTORY "${CMAKE_SOURCE_DIR}" CALL conan_provide_dependen set(CONAN_HOST_PROFILE "default;auto-cmake" CACHE STRING "Conan host profile") set(CONAN_BUILD_PROFILE "default" CACHE STRING "Conan build profile") set(CONAN_INSTALL_ARGS "--build=missing" CACHE STRING "Command line arguments for conan install") +set(CONANFILE_DIR "${CMAKE_SOURCE_DIR}" CACHE STRING "Directory containing conanfile.txt/.py") find_program(_cmake_program NAMES cmake NO_PACKAGE_ROOT_PATH NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH) if(NOT _cmake_program)