-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find_package(Slint) never succeed even after FetchContent_MakeAvailable #16
Comments
What version of cmake are you using? The CMakeLists.txt line for is slint-cpp-template/CMakeLists.txt Line 4 in 892aa00
It contains a |
@ogoffart Yes. I removed |
Please copy your full CMakeLists then. |
@ogoffart I know that is current behavior, but not neccessary a reasonable one. |
I'm afraid this is not how cmake work. |
…configure Require CMake 2.4 to intregate CMake FetchContent and find_package, according to https://cmake.org/cmake/help/latest/guide/using-dependencies/index.html#fetchcontent-and-find-package-integration This way FetchContent_MakeAvailable will first try to call find_package(Slint) and if that fails then fall back to building via FetchContent. Fixes #16
…configure Require CMake 3.24 to intregate CMake FetchContent and find_package, according to https://cmake.org/cmake/help/latest/guide/using-dependencies/index.html#fetchcontent-and-find-package-integration This way FetchContent_MakeAvailable will first try to call find_package(Slint) and if that fails then fall back to building via FetchContent. Fixes #16
My bad. |
No worries - all good. I'll also close the PR. The current approach isn't too bad and it works with older cmake versions. |
This causes Slint source code being retrieved every time a cmake configuration is triggered.
The text was updated successfully, but these errors were encountered: