cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Execute "conan install" also when running from "conan build"

Open petermbauer opened this issue 5 years ago • 0 comments

Hi,

according to https://github.com/conan-io/cmake-conan/blob/develop/conan.cmake#L486 nothing happens if CMake is called by the CMake helper during a "conan build" command assuming that the user must have already run "conan install" before. The problem with this is that if the conanfile.py has changed and the user runs another "conan build", conan.cmake also does not do a "conan install" though it would be needed. Would it be possible to check for CONAN_IN_LOCAL_CACHE instead of CONAN_EXPORTED so it also works when using conan build only?

br, Peter

petermbauer avatar Jun 01 '20 13:06 petermbauer