Closed simshi closed 3 months ago
@simshi could you please share your conan profile?
HI @simshi thank you for reporting this.
Are we talking about https://github.com/conan-io/examples2/tree/main/tutorial/consuming_packages/simple_cmake_project ?
I'm unable to reproduce this with the conanfile.txt
in that folder: conan install . --output-folder=build
will generate only a single build folder. Have you, by any chance, edited conanfile.txt
to define a layout?
Have you, by any chance, edited
conanfile.txt
to define a layout?
Yes, that's the reason, it worked after I remove the layout. Thank you.
conan version 2.3.0 cmake 3.22.1
conan install . --output-folder=build --build=missing
generates build/build/Release/generators/, it has extra build/conan install . --build=missing
, generates build/Release/generators/, then:cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
, error with "Could not find toolchain file: conan_toolchain.cmake"cmake .. -DCMAKE_TOOLCHAIN_FILE=Release/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
, it works