Skip to content

Commit

Permalink
Move CONANFILE_DIR to the bottom with other cache vars
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 27, 2024
1 parent 43e81e2 commit caef1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan_provider.cmake
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit caef1c6

Please sign in to comment.