Open playgithub opened 3 years ago
Do you pass generated toolchain file to CMake with -DCMAKE_TOOLCHAIN_FILE
?
Do you pass generated toolchain file to CMake with
-DCMAKE_TOOLCHAIN_FILE
?
Qt Creator will automatically do this, and other libs working fine.
Anyway I've tried -DCMAKE_TOOLCHAIN_FILE
, but it doesn't help.
If you have Qt Creator, simply test it.
I don't have Qt Creator, but it works fine on my side with -DCMAKE_TOOLCHAIN_FILE=<abspath/to/conan_toolchain.cmake>
in a terminal.
So maybe some magic in https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/share/3rdparty/package-manager/auto-setup.cmake is not ready for CMakeToolchain
and/or CMakeDeps
generators?
With wxWidgets
, during CMake configuration, do you see messages like -- Conan: Component target declared
or -- Conan: Target declared
? If not, it means there is something wrong.
Env
windows 11 qt creator 5.0.2 conan 1.41.0
conanfile.py
cmake configure options
Problem
CMakeLists.txt
More Info
tested on
wxWidgets
find_package(wxWidgets REQUIRED COMPONENTS core)
succeeds