-
Notifications
You must be signed in to change notification settings - Fork 255
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
Automatically created conanfile.txt shows different generators #276
Comments
Hi @akalali, Lines 424 to 426 in cf7110d
That will lead to the same result in the end than if it was in the conanfile.txt
|
And why is the cmake generator used in the first place? I created a small testproject with a simple
and this results in an output similar to
I then |
The cmake generator is always used as a default for |
Yes, that what I understood. My question was more in the direction, why the default is not overridden by what's used in the |
Hi @akalali, |
I tried to use the Until now I did not experience any side-effects but I remember having another project that used the |
Hi @akalali, Yes, if you want to use You can use the targets generated by the cmake_minimum_required(VERSION 2.8.12)
project(FormatOutput)
add_definitions("-std=c++11")
include(conan.cmake)
conan_cmake_run(REQUIRES fmt/6.1.2
NO_LOAD
GENERATORS cmake_find_package
GENERATORS cmake_paths
BUILD missing)
# conan_paths.cmake generated by cmake_paths generator
include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
# Findfmt.cmake generated by cmake_find_package generator
find_package(fmt)
add_executable(main main.cpp)
target_link_libraries(main fmt::fmt) |
Thanks for the clarification. I think my initial question is answered. We / you can close the topic depending on whether you want to address the two other mentioned issues / improvements:
|
Hi @akalali, |
I would like to remove the default generator as well. I can make a PR if you want, i just need to know how it should be done. I was thinking about a parameter " If a EDIT : Oh and about the load of the |
I'm closing this as for the future we are moving in the direction of deprecating the use of |
I'm using the CMake wrapper by downloading the
conan.cmake
-file and I'm callingThis leads to the creation of several files in my output folder. The CMake output shows:
In my output folder I find the
conanfile.txt
, which is "the recipe" created by the wrapper for my<PACKAGE>
, I guess. Now when I open this file, I see the following:I was wondering why
[generators]
is set tocmake
and notcmake_find_package
andcmake_paths
?The text was updated successfully, but these errors were encountered: