Skip to content

Commit

Permalink
source conanbuildinfo.cmake from current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
staskau committed Jul 28, 2022
1 parent 1f519b6 commit 713f389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/ConanInline.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ macro(conan_setup)
cmake_parse_arguments(MARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )


set(conanfile_cmake ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
set(conanfile_cmake_paths ${CMAKE_BINARY_DIR}/conan_paths.cmake)

set(conanfile_cmake ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake)
set(conanfile_cmake ${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake)
endif()

if(EXISTS "${conanfile_cmake_paths}")
include(${conanfile_cmake_paths})
elseif(EXISTS "${conanfile_cmake}")
Expand Down

0 comments on commit 713f389

Please sign in to comment.